tinus <o112w8r02(a)sneakemail.com>
Cleanup the timers after sending WM_NCDESTROY
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
_____
Modified: trunk/reactos/subsys/win32k/ntuser/window.c
--- trunk/reactos/subsys/win32k/ntuser/window.c 2005-02-23 08:14:48 UTC
(rev 13721)
+++ trunk/reactos/subsys/win32k/ntuser/window.c 2005-02-23 08:16:19 UTC
(rev 13722)
@@ -267,8 +267,6 @@
BOOLEAN BelongsToThreadData;
ASSERT(Window);
-
- MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
IntLockThreadWindows(Window->OwnerThread->Tcb.Win32Thread);
if(Window->Status & WINDOWSTATUS_DESTROYING)
@@ -326,6 +324,7 @@
if(BelongsToThreadData)
IntSendMessage(Window->Self, WM_NCDESTROY, 0, 0);
}
+ MsqRemoveTimersWindow(ThreadData->MessageQueue, Window->Self);
/* flush the message queue */
MsqRemoveWindowMessagesFromQueue(Window);
Show replies by date