https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f3699c383894289007ef2…
commit f3699c383894289007ef2dd1637834f25bfcd4bd
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jul 22 20:38:46 2018 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Aug 19 22:18:39 2018 +0200
[WIN32K:NTUSER] NtUserCloseDesktop(): Use ObCloseHandle instead.
---
win32ss/user/ntuser/desktop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/desktop.c b/win32ss/user/ntuser/desktop.c
index a90a27caa1..ad070ad4f2 100644
--- a/win32ss/user/ntuser/desktop.c
+++ b/win32ss/user/ntuser/desktop.c
@@ -2656,7 +2656,7 @@ NtUserCloseDesktop(HDESK hDesktop)
ObDereferenceObject(pdesk);
- Status = ZwClose(hDesktop);
+ Status = ObCloseHandle(hDesktop, UserMode);
if (!NT_SUCCESS(Status))
{
ERR("Failed to close desktop handle 0x%p\n", hDesktop);