Commit a patch (attachment #1135)

svn path=/trunk/; revision=26115
This commit is contained in:
Dmitry Gorbachev 2007-03-16 16:52:36 +00:00
parent 3c950f2259
commit 6c337b4d51

View file

@ -965,13 +965,14 @@ MsqRemoveWindowMessagesFromQueue(PVOID pWindow)
ListHead = &MessageQueue->SentMessagesListHead;
while (CurrentEntry != ListHead)
{
CurrentEntry = RemoveHeadList(&MessageQueue->SentMessagesListHead);
SentMessage = CONTAINING_RECORD(CurrentEntry, USER_SENT_MESSAGE,
ListEntry);
if(SentMessage->Msg.hwnd == Window->hSelf)
{
DPRINT("Notify the sender and remove a message from the queue that had not been dispatched\n");
RemoveEntryList(&SentMessage->ListEntry);
/* remove the message from the dispatching list */
if(SentMessage->DispatchingListEntry.Flink != NULL)
{