mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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 */
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
RegistryPath,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||
NULL,
|
||||
NULL);
|
||||
Status = ZwOpenKey(&KeyHandle, KEY_QUERY_VALUE, &ObjectAttributes);
|
||||
|
|
|
@ -177,7 +177,7 @@ PciOpenKey(IN PWCHAR KeyName,
|
|||
RtlInitUnicodeString(&KeyString, KeyName);
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&KeyString,
|
||||
OBJ_CASE_INSENSITIVE,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||
RootKey,
|
||||
NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue