Skip to content

Commit abe8f0a

Browse files
SergeGautherieGeoB99
authored andcommitted
[PCIX] Add 2 OBJ_KERNEL_HANDLE
Match Zw*() uses. CORE-10207
1 parent 4bf3210 commit abe8f0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/bus/pcix/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
733733
/* Open the PCI key */
734734
InitializeObjectAttributes(&ObjectAttributes,
735735
RegistryPath,
736-
OBJ_CASE_INSENSITIVE,
736+
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
737737
NULL,
738738
NULL);
739739
Status = ZwOpenKey(&KeyHandle, KEY_QUERY_VALUE, &ObjectAttributes);

drivers/bus/pcix/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ PciOpenKey(IN PWCHAR KeyName,
177177
RtlInitUnicodeString(&KeyString, KeyName);
178178
InitializeObjectAttributes(&ObjectAttributes,
179179
&KeyString,
180-
OBJ_CASE_INSENSITIVE,
180+
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
181181
RootKey,
182182
NULL);
183183

0 commit comments

Comments
 (0)