mirror of
https://github.com/reactos/reactos.git
synced 2025-05-31 23:18:39 +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)
|
_Reserved_ PVOID Reserved3)
|
||||||
{
|
{
|
||||||
PENG_EVENT EngEvent;
|
PENG_EVENT EngEvent;
|
||||||
|
PVOID pvEvent;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
/* Allocate memory for the event structure */
|
/* Allocate memory for the event structure */
|
||||||
|
@ -132,16 +133,17 @@ EngMapEvent(
|
||||||
EngEvent->pKEvent = NULL;
|
EngEvent->pKEvent = NULL;
|
||||||
|
|
||||||
/* Create a handle, and have Ob fill out the pKEvent field */
|
/* Create a handle, and have Ob fill out the pKEvent field */
|
||||||
Status = ObReferenceObjectByHandle(EngEvent,
|
Status = ObReferenceObjectByHandle(hUserObject,
|
||||||
EVENT_ALL_ACCESS,
|
EVENT_ALL_ACCESS,
|
||||||
*ExEventObjectType,
|
*ExEventObjectType,
|
||||||
UserMode,
|
UserMode,
|
||||||
&EngEvent->pKEvent,
|
&pvEvent,
|
||||||
NULL);
|
NULL);
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Pulse the event and set that it's mapped by user */
|
/* 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;
|
EngEvent->fFlags |= ENG_EVENT_USERMAPPED;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue