From 21c54e41c6e9b0fc0f4c4fc16184f2fcd7499aed Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 17 Dec 2003 13:11:55 +0000 Subject: [PATCH] fixed dereferencing of child window objects in IntDestroyWindow() and send a WM_DESTROY message to them if they don't belong to the calling thread svn path=/trunk/; revision=7095 --- reactos/subsys/win32k/ntuser/window.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/window.c b/reactos/subsys/win32k/ntuser/window.c index 91d753217d6..821b8514200 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.164 2003/12/16 18:14:39 weiden Exp $ +/* $Id: window.c,v 1.165 2003/12/17 13:11:55 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -276,10 +276,9 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window, { if (IntWndBelongsToThread(Child, ThreadData)) IntDestroyWindow(Child, ProcessData, ThreadData, SendMessages); -#if 0 /* FIXME */ else - SendMessageW( list[i], WM_WINE_DESTROYWINDOW, 0, 0 ); -#endif + IntSendMessage(Child->Self, WM_DESTROY, 0, 0, TRUE); + IntReleaseWindowObject(Child); } } ExFreePool(Children);