From e8cf99cda9221c519c3963efc746c06d2f18b41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sat, 13 Mar 2004 23:12:19 +0000 Subject: [PATCH] Delay unlinking of windows until after all messages have been sent. This fixes bug #241. svn path=/trunk/; revision=8696 --- reactos/subsys/win32k/ntuser/window.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index 931a7cc18b6..d3a712dcc09 100644 --- a/reactos/subsys/win32k/ntuser/window.c +++ b/reactos/subsys/win32k/ntuser/window.c @@ -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 @@ DestroyThreadWindows(struct _ETHREAD *Thread) for(pWnd = List; *pWnd; pWnd++) { - IntDestroyWindow(*pWnd, Win32Process, Win32Thread, FALSE); + NtUserDestroyWindow((*pWnd)->Self); IntReleaseWindowObject(*pWnd); } ExFreePool(List); @@ -1868,9 +1868,6 @@ NtUserDestroyWindow(HWND Wnd) 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);