mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 16:26:02 +00:00
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
This commit is contained in:
parent
c64c44c316
commit
21c54e41c6
1 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -276,10 +276,9 @@ static LRESULT IntDestroyWindow(PWINDOW_OBJECT Window,
|
||||||
{
|
{
|
||||||
if (IntWndBelongsToThread(Child, ThreadData))
|
if (IntWndBelongsToThread(Child, ThreadData))
|
||||||
IntDestroyWindow(Child, ProcessData, ThreadData, SendMessages);
|
IntDestroyWindow(Child, ProcessData, ThreadData, SendMessages);
|
||||||
#if 0 /* FIXME */
|
|
||||||
else
|
else
|
||||||
SendMessageW( list[i], WM_WINE_DESTROYWINDOW, 0, 0 );
|
IntSendMessage(Child->Self, WM_DESTROY, 0, 0, TRUE);
|
||||||
#endif
|
IntReleaseWindowObject(Child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ExFreePool(Children);
|
ExFreePool(Children);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue