mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Dereference the event if the queue is freed in IntDereferenceMessageQueue.
svn path=/trunk/; revision=15545
This commit is contained in:
parent
b73c53c40c
commit
f30557e387
1 changed files with 2 additions and 0 deletions
|
@ -239,6 +239,8 @@ VOID STDCALL MsqRemoveWindowMessagesFromQueue(PVOID pWindow); /* F*(&$ headers,
|
|||
if(InterlockedDecrement(&(MsgQueue)->References) == 0) \
|
||||
{ \
|
||||
DPRINT("Free message queue 0x%x\n", (MsgQueue)); \
|
||||
if ((MsgQueue)->NewMessages != NULL) \
|
||||
ObDereferenceObject((MsgQueue)->NewMessages); \
|
||||
if ((MsgQueue)->NewMessagesHandle != NULL) \
|
||||
ZwClose((MsgQueue)->NewMessagesHandle); \
|
||||
ExFreePool((MsgQueue)); \
|
||||
|
|
Loading…
Reference in a new issue