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