https://git.reactos.org/?p=reactos.git;a=commitdiff;h=33714797f47537983142e1...
commit 33714797f47537983142e1d4760f7f492f822e30 Author: Serge Gautherie reactos-git_serge_171003@gautherie.fr AuthorDate: Wed Sep 9 03:46:56 2020 +0200 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Sat Nov 14 12:03:27 2020 +0100
[COMPBATT] Add a missing OBJ_KERNEL_HANDLE
CORE-10207 --- drivers/bus/acpi/compbatt/compmisc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/bus/acpi/compbatt/compmisc.c b/drivers/bus/acpi/compbatt/compmisc.c index 337c521835c..e84a2512706 100644 --- a/drivers/bus/acpi/compbatt/compmisc.c +++ b/drivers/bus/acpi/compbatt/compmisc.c @@ -84,7 +84,11 @@ CompBattGetDeviceObjectPointer(IN PUNICODE_STRING DeviceName, PAGED_CODE();
/* Open a file object handle to the device */ - InitializeObjectAttributes(&ObjectAttributes, DeviceName, 0, NULL, NULL); + InitializeObjectAttributes(&ObjectAttributes, + DeviceName, + OBJ_KERNEL_HANDLE, + NULL, + NULL); Status = ZwCreateFile(&DeviceHandle, DesiredAccess, &ObjectAttributes,