[WIN32K:NTUSER] NtUserCloseDesktop(): Use ObCloseHandle instead.

This commit is contained in:
Hermès Bélusca-Maïto 2018-07-22 20:38:46 +02:00
parent c697f191cf
commit f3699c3838
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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);