mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
tinus <o112w8r02@sneakemail.com>
Cleanup the timers after sending WM_NCDESTROY svn path=/trunk/; revision=13722
This commit is contained in:
parent
53f1824b0e
commit
1d8b8598af
1 changed files with 1 additions and 2 deletions
|
@ -267,8 +267,6 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
|||
BOOLEAN BelongsToThreadData;
|
||||
|
||||
ASSERT(Window);
|
||||
|
||||
MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
|
||||
|
||||
IntLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread);
|
||||
if(Window->Status & WINDOWSTATUS_DESTROYING)
|
||||
|
@ -326,6 +324,7 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
|||
if(BelongsToThreadData)
|
||||
IntSendMessage(Window->Self, WM_NCDESTROY, 0, 0);
|
||||
}
|
||||
MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
|
||||
|
||||
/* flush the message queue */
|
||||
MsqRemoveWindowMessagesFromQueue(Window);
|
||||
|
|
Loading…
Reference in a new issue