The root key should be created as a root key, not subkey.
authorWilco Baan Hofman <wilco@baanhofman.nl>
Mon, 30 Aug 2010 13:05:25 +0000 (15:05 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 3 Oct 2010 13:31:37 +0000 (15:31 +0200)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
source4/lib/registry/regf.c

index f377099ea1f5a7c5458931dd41223b551be24dbc..58cc51c20260b830d949b204ee6c8f64fe28c741 100644 (file)
@@ -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;