mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 15:15:27 +00:00
parent
3c950f2259
commit
6c337b4d51
|
@ -965,13 +965,14 @@ MsqRemoveWindowMessagesFromQueue(PVOID pWindow)
|
||||||
ListHead = &MessageQueue->SentMessagesListHead;
|
ListHead = &MessageQueue->SentMessagesListHead;
|
||||||
while (CurrentEntry != ListHead)
|
while (CurrentEntry != ListHead)
|
||||||
{
|
{
|
||||||
CurrentEntry = RemoveHeadList(&MessageQueue->SentMessagesListHead);
|
|
||||||
SentMessage = CONTAINING_RECORD(CurrentEntry, USER_SENT_MESSAGE,
|
SentMessage = CONTAINING_RECORD(CurrentEntry, USER_SENT_MESSAGE,
|
||||||
ListEntry);
|
ListEntry);
|
||||||
if(SentMessage->Msg.hwnd == Window->hSelf)
|
if(SentMessage->Msg.hwnd == Window->hSelf)
|
||||||
{
|
{
|
||||||
DPRINT("Notify the sender and remove a message from the queue that had not been dispatched\n");
|
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 */
|
/* remove the message from the dispatching list */
|
||||||
if(SentMessage->DispatchingListEntry.Flink != NULL)
|
if(SentMessage->DispatchingListEntry.Flink != NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue