mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 15:20:29 +08:00
[PCIX] Add 2 OBJ_KERNEL_HANDLE
Match Zw*() uses. CORE-10207
This commit is contained in:
committed by
George Bișoc
parent
4bf32102ab
commit
abe8f0ab1d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user