Author: tkreuzer
Date: Sat Oct 6 19:04:36 2012
New Revision: 57501
URL:
http://svn.reactos.org/svn/reactos?rev=57501&view=rev
Log:
[WIN32K]
- Keep an additional reference while processing the message list of a message queue
- CID 716808
Modified:
trunk/reactos/win32ss/user/ntuser/msgqueue.c
Modified: trunk/reactos/win32ss/user/ntuser/msgqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/msgque…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/msgqueue.c [iso-8859-1] Sat Oct 6 19:04:36 2012
@@ -874,6 +874,9 @@
}
}
+ /* Reference we message queue, so it won't get deleted */
+ IntReferenceMessageQueue(MessageQueue);
+
/* remove the sent messages for this window */
CurrentEntry = MessageQueue->SentMessagesListHead.Flink;
ListHead = &MessageQueue->SentMessagesListHead;
@@ -930,6 +933,9 @@
CurrentEntry = CurrentEntry->Flink;
}
}
+
+ /* Remove the reference we added */
+ IntDereferenceMessageQueue(MessageQueue);
}
BOOL FASTCALL