mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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();
|
PAGED_CODE();
|
||||||
|
|
||||||
/* Open a file object handle to the device */
|
/* 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,
|
Status = ZwCreateFile(&DeviceHandle,
|
||||||
DesiredAccess,
|
DesiredAccess,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
|
|
Loading…
Reference in a new issue