mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 01:10:26 +00:00
[WIN32SS:NTUSER] Use kernel handle in W32kOpenFile().
This commit is contained in:
parent
d535ecf1dc
commit
1c2b757a64
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ W32kOpenFile(PCWSTR pwszFileName, DWORD dwDesiredAccess)
|
||||||
|
|
||||||
RtlInitUnicodeString(&ustrFile, pwszFileName);
|
RtlInitUnicodeString(&ustrFile, pwszFileName);
|
||||||
|
|
||||||
InitializeObjectAttributes(&ObjectAttributes, &ustrFile, 0, NULL, NULL);
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
|
&ustrFile,
|
||||||
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
|
NULL,
|
||||||
|
NULL);
|
||||||
|
|
||||||
Status = ZwCreateFile(&hFile,
|
Status = ZwCreateFile(&hFile,
|
||||||
dwDesiredAccess,
|
dwDesiredAccess,
|
||||||
|
|
Loading…
Reference in a new issue