Commit in reactos/subsys/win32k/ntuser on MAIN
window.c+2-51.198 -> 1.199
Delay unlinking of windows until after all messages have been sent.
This fixes bug #241.

reactos/subsys/win32k/ntuser
window.c 1.198 -> 1.199
diff -u -r1.198 -r1.199
--- window.c	9 Mar 2004 21:21:39 -0000	1.198
+++ window.c	13 Mar 2004 23:12:19 -0000	1.199
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: window.c,v 1.198 2004/03/09 21:21:39 dwelch Exp $
+/* $Id: window.c,v 1.199 2004/03/13 23:12:19 gvg Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -533,7 +533,7 @@
     
     for(pWnd = List; *pWnd; pWnd++)
     {
-      IntDestroyWindow(*pWnd, Win32Process, Win32Thread, FALSE);
+      NtUserDestroyWindow((*pWnd)->Self);
       IntReleaseWindowObject(*pWnd);
     }
     ExFreePool(List);
@@ -1868,9 +1868,6 @@
       return TRUE;
     }
 
-  /* Unlink now so we won't bother with the children later on */
-  IntUnlinkWindow(Window);
-
   /* Destroy the window storage */
   IntDestroyWindow(Window, PsGetWin32Process(), PsGetWin32Thread(), TRUE);
   
CVSspam 0.2.8