https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1c2b757a64136aae863cf…
commit 1c2b757a64136aae863cfd76f331bffe0f7b7a66
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jan 12 16:50:35 2020 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Mar 19 17:04:30 2022 +0100
[WIN32SS:NTUSER] Use kernel handle in W32kOpenFile().
---
win32ss/user/ntuser/misc/file.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/misc/file.c b/win32ss/user/ntuser/misc/file.c
index 5dcd20a020a..988703705dc 100644
--- a/win32ss/user/ntuser/misc/file.c
+++ b/win32ss/user/ntuser/misc/file.c
@@ -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,