From 6c337b4d51b6c6206f907b841a308ddd5c9e65da Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Fri, 16 Mar 2007 16:52:36 +0000 Subject: [PATCH] Commit a patch (attachment #1135) svn path=/trunk/; revision=26115 --- reactos/subsystems/win32/win32k/ntuser/msgqueue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index 612495571e6..6634a2c408e 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -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) {