From b3d2345bd1b963f30d08067275b51bd7eaa9e1a9 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Mon, 30 Aug 2010 15:05:25 +0200 Subject: The root key should be created as a root key, not subkey. Signed-off-by: Jelmer Vernooij --- source4/lib/registry/regf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/registry/regf.c') 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; -- cgit