mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[COMPBATT] Add a missing OBJ_KERNEL_HANDLE
CORE-10207
This commit is contained in:
parent
b910409a4a
commit
33714797f4
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue