mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00:00
[WIN32SS:NTUSER] Use kernel handle in W32kOpenFile().
This commit is contained in:
@@ -52,7 +52,11 @@ W32kOpenFile(PCWSTR pwszFileName, DWORD dwDesiredAccess)
|
||||
|
||||
RtlInitUnicodeString(&ustrFile, pwszFileName);
|
||||
|
||||
InitializeObjectAttributes(&ObjectAttributes, &ustrFile, 0, NULL, NULL);
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
&ustrFile,
|
||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
Status = ZwCreateFile(&hFile,
|
||||
dwDesiredAccess,
|
||||
|
||||
Reference in New Issue
Block a user