summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_w95
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2004-04-13 17:34:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:51:16 -0500
commitc7a60a178f4b28f40d70f7b0c12bec6ab7af7846 (patch)
tree900496b87ddb4dcda551e21021b5952a104638d4 /source4/lib/registry/reg_backend_w95
parent2199a6ffa909d1b53c7f4a3b87634432980c78d9 (diff)
downloadsamba-c7a60a178f4b28f40d70f7b0c12bec6ab7af7846.tar.gz
samba-c7a60a178f4b28f40d70f7b0c12bec6ab7af7846.tar.bz2
samba-c7a60a178f4b28f40d70f7b0c12bec6ab7af7846.zip
r200: fix compile errors
(This used to be commit c64132ddc6396a599a2e13b893e8abf1f731478f)
Diffstat (limited to 'source4/lib/registry/reg_backend_w95')
-rw-r--r--source4/lib/registry/reg_backend_w95/reg_backend_w95.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/lib/registry/reg_backend_w95/reg_backend_w95.c b/source4/lib/registry/reg_backend_w95/reg_backend_w95.c
index 31abd69854..cd07e0a179 100644
--- a/source4/lib/registry/reg_backend_w95/reg_backend_w95.c
+++ b/source4/lib/registry/reg_backend_w95/reg_backend_w95.c
@@ -224,13 +224,15 @@ static WERROR w95_get_subkey_by_index (REG_KEY *parent, int n, REG_KEY **key)
static WERROR w95_open_reg (REG_HANDLE *h, const char *location, const char *credentials)
{
- CREG *creg = talloc_p(h->mem_ctx, CREG);
+ CREG *creg;
DWORD creg_id, rgkn_id;
- memset(creg, 0, sizeof(CREG));
- h->backend_data = creg;
DWORD i, nfree = 0;
DWORD offset, end_offset;
+ creg = talloc_p(h->mem_ctx, CREG);
+ memset(creg, 0, sizeof(CREG));
+ h->backend_data = creg;
+
if((creg->fd = open(location, O_RDONLY, 0000)) < 0) {
return WERR_FOOBAR;
}