Author: tkreuzer
Date: Tue Mar 10 00:09:41 2015
New Revision: 66638
URL:
http://svn.reactos.org/svn/reactos?rev=66638&view=rev
Log:
[WIN32K]
Fix bug in EngMapEvent
Modified:
trunk/reactos/win32ss/gdi/eng/engevent.c
Modified: trunk/reactos/win32ss/gdi/eng/engevent.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/engevent.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/engevent.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/engevent.c [iso-8859-1] Tue Mar 10 00:09:41 2015
@@ -119,6 +119,7 @@
_Reserved_ PVOID Reserved3)
{
PENG_EVENT EngEvent;
+ PVOID pvEvent;
NTSTATUS Status;
/* Allocate memory for the event structure */
@@ -132,16 +133,17 @@
EngEvent->pKEvent = NULL;
/* Create a handle, and have Ob fill out the pKEvent field */
- Status = ObReferenceObjectByHandle(EngEvent,
+ Status = ObReferenceObjectByHandle(hUserObject,
EVENT_ALL_ACCESS,
*ExEventObjectType,
UserMode,
- &EngEvent->pKEvent,
+ &pvEvent,
NULL);
if (NT_SUCCESS(Status))
{
/* Pulse the event and set that it's mapped by user */
- KePulseEvent(EngEvent->pKEvent, EVENT_INCREMENT, FALSE);
+ KePulseEvent(pvEvent, EVENT_INCREMENT, FALSE);
+ EngEvent->pKEvent = pvEvent;
EngEvent->fFlags |= ENG_EVENT_USERMAPPED;
}
else