mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
Dereference the event if the queue is freed in IntDereferenceMessageQueue.
svn path=/trunk/; revision=15545
This commit is contained in:
@@ -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)); \
|
||||
|
||||
Reference in New Issue
Block a user