Author: gadamopoulos
Date: Wed Oct  6 13:10:00 2010
New Revision: 49014

URL: http://svn.reactos.org/svn/reactos?rev=49014&view=rev
Log:
[win32k]
- co_UserDestroyWindow: Send WM_PARENTNOTIFY message in correct order

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/window.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/window.c?rev=49014&r1=49013&r2=49014&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] 
(original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Wed Oct  
6 13:10:00 2010
@@ -2445,6 +2445,12 @@
       if (co_HOOK_CallHooks(WH_CBT, HCBT_DESTROYWND, (WPARAM) hWnd, 0)) return 
FALSE;
    }
 
+   /* Inform the parent */
+   if (Wnd->style & WS_CHILD)
+   {
+      IntSendParentNotify(Window, WM_DESTROY);
+   }
+
    /* Look whether the focus is within the tree of windows we will
     * be destroying.
     */
@@ -2481,12 +2487,7 @@
    IntDereferenceMessageQueue(Window->pti->MessageQueue);
 
    IntEngWindowChanged(Window, WOC_DELETE);
-
-   if (Wnd->style & WS_CHILD)
-   {
-      IntSendParentNotify(Window, WM_DESTROY);
-   }
-
+   
    if (!IntIsWindow(Window->hSelf))
    {
       return TRUE;


Reply via email to