mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[PCIX] Add 2 OBJ_KERNEL_HANDLE
Match Zw*() uses. CORE-10207
This commit is contained in:
parent
4bf32102ab
commit
abe8f0ab1d
2 changed files with 2 additions and 2 deletions
|
@ -733,7 +733,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
|
||||||
/* Open the PCI key */
|
/* Open the PCI key */
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
RegistryPath,
|
RegistryPath,
|
||||||
OBJ_CASE_INSENSITIVE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
Status = ZwOpenKey(&KeyHandle, KEY_QUERY_VALUE, &ObjectAttributes);
|
Status = ZwOpenKey(&KeyHandle, KEY_QUERY_VALUE, &ObjectAttributes);
|
||||||
|
|
|
@ -177,7 +177,7 @@ PciOpenKey(IN PWCHAR KeyName,
|
||||||
RtlInitUnicodeString(&KeyString, KeyName);
|
RtlInitUnicodeString(&KeyString, KeyName);
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&KeyString,
|
&KeyString,
|
||||||
OBJ_CASE_INSENSITIVE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
RootKey,
|
RootKey,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue