[PCIX] Add 2 OBJ_KERNEL_HANDLE

Match Zw*() uses.

CORE-10207
This commit is contained in:
Serge Gautherie 2022-05-04 16:23:54 +02:00 committed by George Bișoc
parent 4bf32102ab
commit abe8f0ab1d
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);