From abe8f0ab1db58a44d867f20d15bbbe4bc1dfd79e Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Wed, 4 May 2022 16:23:54 +0200 Subject: [PATCH] [PCIX] Add 2 OBJ_KERNEL_HANDLE Match Zw*() uses. CORE-10207 --- drivers/bus/pcix/init.c | 2 +- drivers/bus/pcix/utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/pcix/init.c b/drivers/bus/pcix/init.c index 2edf7c3d426..34c69f7e96c 100644 --- a/drivers/bus/pcix/init.c +++ b/drivers/bus/pcix/init.c @@ -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); diff --git a/drivers/bus/pcix/utils.c b/drivers/bus/pcix/utils.c index 928941594ed..41e85721cfd 100644 --- a/drivers/bus/pcix/utils.c +++ b/drivers/bus/pcix/utils.c @@ -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);