mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[WIN32K]
Fix bug in EngMapEvent svn path=/trunk/; revision=66638
This commit is contained in:
parent
1e9299af24
commit
e04361b3a8
1 changed files with 5 additions and 3 deletions
|
@ -119,6 +119,7 @@ EngMapEvent(
|
|||
_Reserved_ PVOID Reserved3)
|
||||
{
|
||||
PENG_EVENT EngEvent;
|
||||
PVOID pvEvent;
|
||||
NTSTATUS Status;
|
||||
|
||||
/* Allocate memory for the event structure */
|
||||
|
@ -132,16 +133,17 @@ EngMapEvent(
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue