tinus <o112w8r02@sneakemail.com>

Cleanup the timers after sending WM_NCDESTROY

svn path=/trunk/; revision=13722
This commit is contained in:
Gé van Geldorp 2005-02-23 08:16:19 +00:00
parent 53f1824b0e
commit 1d8b8598af

View file

@ -268,8 +268,6 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
ASSERT(Window); ASSERT(Window);
MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
IntLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread); IntLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread);
if(Window->Status & WINDOWSTATUS_DESTROYING) if(Window->Status & WINDOWSTATUS_DESTROYING)
{ {
@ -326,6 +324,7 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
if(BelongsToThreadData) if(BelongsToThreadData)
IntSendMessage(Window->Self, WM_NCDESTROY, 0, 0); IntSendMessage(Window->Self, WM_NCDESTROY, 0, 0);
} }
MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
/* flush the message queue */ /* flush the message queue */
MsqRemoveWindowMessagesFromQueue(Window); MsqRemoveWindowMessagesFromQueue(Window);