https://git.reactos.org/?p=reactos.git;a=commitdiff;h=abe8f0ab1db58a44d867f2...
commit abe8f0ab1db58a44d867f20d15bbbe4bc1dfd79e Author: Serge Gautherie reactos-git_serge_171003@gautherie.fr AuthorDate: Wed May 4 16:23:54 2022 +0200 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Sat May 7 16:23:42 2022 +0200
[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);