Author: tfaber
Date: Thu Oct 15 09:50:12 2015
New Revision: 69537
URL:
http://svn.reactos.org/svn/reactos?rev=69537&view=rev
Log:
[WIN32K:NTUSER]
- THREADINFO::hEventQueueClient is a user handle. Treat it as such.
CORE-10207
Modified:
trunk/reactos/win32ss/user/ntuser/main.c
Modified: trunk/reactos/win32ss/user/ntuser/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/main.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/main.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/main.c [iso-8859-1] Thu Oct 15 09:50:12 2015
@@ -508,12 +508,12 @@
goto error;
}
Status = ObReferenceObjectByHandle(ptiCurrent->hEventQueueClient, 0,
- *ExEventObjectType, KernelMode,
+ *ExEventObjectType, UserMode,
(PVOID*)&ptiCurrent->pEventQueueServer,
NULL);
if (!NT_SUCCESS(Status))
{
ERR_CH(UserThread, "Failed referencing the event object, Status
0x%08x.\n", Status);
- ZwClose(ptiCurrent->hEventQueueClient);
+ ObCloseHandle(ptiCurrent->hEventQueueClient, UserMode);
ptiCurrent->hEventQueueClient = NULL;
goto error;
}
@@ -818,7 +818,7 @@
if (ptiCurrent->hEventQueueClient != NULL)
{
- ZwClose(ptiCurrent->hEventQueueClient);
+ ObCloseHandle(ptiCurrent->hEventQueueClient, UserMode);
ObDereferenceObject(ptiCurrent->pEventQueueServer);
}
ptiCurrent->hEventQueueClient = NULL;