summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-08-30 15:05:25 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 15:31:37 +0200
commitb3d2345bd1b963f30d08067275b51bd7eaa9e1a9 (patch)
tree54cc65172fa5897940fc1e0d55419fef5a1185f0
parentbc2098c45920087c49770892db1e50c76d71d8a4 (diff)
downloadsamba-b3d2345bd1b963f30d08067275b51bd7eaa9e1a9.tar.gz
samba-b3d2345bd1b963f30d08067275b51bd7eaa9e1a9.tar.bz2
samba-b3d2345bd1b963f30d08067275b51bd7eaa9e1a9.zip
The root key should be created as a root key, not subkey.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
-rw-r--r--source4/lib/registry/regf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c
index f377099ea1..58cc51c202 100644
--- a/source4/lib/registry/regf.c
+++ b/source4/lib/registry/regf.c
@@ -2007,7 +2007,7 @@ WERROR reg_create_regf_file(TALLOC_CTX *parent_ctx,
regf->hbins[0] = NULL;
nk.header = "nk";
- nk.type = REG_SUB_KEY;
+ nk.type = REG_ROOT_KEY;
unix_to_nt_time(&nk.last_change, time(NULL));
nk.uk1 = 0;
nk.parent_offset = -1;