mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
[NTOS:CM]
- Ignore the KEY_WOW64_32KEY and KEY_WOW64_64KEY flags in NtOpenKey/NtCreateKey, as shown by tests. CORE-9691 #resolve svn path=/trunk/; revision=72975
This commit is contained in:
parent
0d36dcef60
commit
85fa521728
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,9 @@ NtCreateKey(OUT PHANDLE KeyHandle,
|
||||||
ObjectAttributes->ObjectName, ObjectAttributes->RootDirectory,
|
ObjectAttributes->ObjectName, ObjectAttributes->RootDirectory,
|
||||||
DesiredAccess, CreateOptions);
|
DesiredAccess, CreateOptions);
|
||||||
|
|
||||||
|
/* Ignore the WOW64 flag, it's not valid in the kernel */
|
||||||
|
DesiredAccess &= ~KEY_WOW64_RES;
|
||||||
|
|
||||||
/* Check for user-mode caller */
|
/* Check for user-mode caller */
|
||||||
if (PreviousMode != KernelMode)
|
if (PreviousMode != KernelMode)
|
||||||
{
|
{
|
||||||
|
@ -126,6 +129,9 @@ NtOpenKey(OUT PHANDLE KeyHandle,
|
||||||
DPRINT("NtOpenKey(Path: %wZ, Root %x, Access: %x)\n",
|
DPRINT("NtOpenKey(Path: %wZ, Root %x, Access: %x)\n",
|
||||||
ObjectAttributes->ObjectName, ObjectAttributes->RootDirectory, DesiredAccess);
|
ObjectAttributes->ObjectName, ObjectAttributes->RootDirectory, DesiredAccess);
|
||||||
|
|
||||||
|
/* Ignore the WOW64 flag, it's not valid in the kernel */
|
||||||
|
DesiredAccess &= ~KEY_WOW64_RES;
|
||||||
|
|
||||||
/* Check for user-mode caller */
|
/* Check for user-mode caller */
|
||||||
if (PreviousMode != KernelMode)
|
if (PreviousMode != KernelMode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue