1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00

The root key should be created as a root key, not subkey.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
Wilco Baan Hofman 2010-08-30 15:05:25 +02:00 committed by Jelmer Vernooij
parent bc2098c459
commit b3d2345bd1

View 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;