mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:16:04 +00:00
[WIN32K]
Initialize list entry after removing a message from DispatchingMessagesHead. Fixes list corruption. CORE-9357 #resolve svn path=/trunk/; revision=66685
This commit is contained in:
parent
11164521c3
commit
e4ce29c7c6
2 changed files with 1 additions and 1 deletions
|
@ -1699,7 +1699,6 @@ co_IntSendMessageWithCallBack( HWND hWnd,
|
|||
Message->ptiSender = NULL; // mjmartin, you are right! This is null.
|
||||
Message->ptiCallBackSender = Win32Thread;
|
||||
InitializeListHead(&Message->DispatchingListEntry);
|
||||
//Message->DispatchingListEntry.Flink = NULL;
|
||||
Message->CompletionCallback = CompletionCallback;
|
||||
Message->CompletionCallbackContext = CompletionCallbackContext;
|
||||
Message->HookMessage = MSQ_NORMAL;
|
||||
|
|
|
@ -2128,6 +2128,7 @@ MsqCleanupThreadMsgs(PTHREADINFO pti)
|
|||
{
|
||||
CurrentEntry = RemoveHeadList(&pti->DispatchingMessagesHead);
|
||||
CurrentSentMessage = CONTAINING_RECORD(CurrentEntry, USER_SENT_MESSAGE, DispatchingListEntry);
|
||||
InitializeListHead(&CurrentSentMessage->DispatchingListEntry);
|
||||
CurrentSentMessage->CompletionEvent = NULL;
|
||||
CurrentSentMessage->Result = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue