summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry')
-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;