mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +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
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue