Skip to content

Commit

Permalink
kernelbase: Don't open Wow6432nodes from create_key().
Browse files Browse the repository at this point in the history
These can never exist in a newly created key.
  • Loading branch information
Sbte authored and julliard committed Mar 28, 2023
1 parent c3bd7c0 commit 3609508
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions dlls/kernelbase/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,19 +303,6 @@ static NTSTATUS create_key( HKEY *retkey, HKEY root, UNICODE_STRING name, ULONG
while (i < len && buffer[i] == '\\') i++;
buffer += i;
len -= i;

if (force_wow32)
{
name.Buffer = buffer;
name.Length = len * sizeof(WCHAR);
if (is_wow6432node( &name )) force_wow32 = FALSE;
else if ((subkey = open_wow6432node( attr.RootDirectory )))
{
NtClose( attr.RootDirectory );
attr.RootDirectory = subkey;
force_wow32 = FALSE;
}
}
}
}
if (status == STATUS_PREDEFINED_HANDLE)
Expand Down

0 comments on commit 3609508

Please sign in to comment.