mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
release window object when destroying window children and skip only children that have a different parent window (instead of owner window because controls do not have a window owner)
svn path=/trunk/; revision=7887
This commit is contained in:
parent
420710cf61
commit
55a09e1914
|
@ -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.178 2004/01/27 08:29:28 weiden Exp $
|
/* $Id: window.c,v 1.179 2004/01/27 09:36:14 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1576,8 +1576,9 @@ NtUserDestroyWindow(HWND Wnd)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (Child->Owner != Window)
|
if (Child->Parent != Window)
|
||||||
{
|
{
|
||||||
|
IntReleaseWindowObject(Child);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (IntWndBelongsToThread(Child, PsGetWin32Thread()))
|
if (IntWndBelongsToThread(Child, PsGetWin32Thread()))
|
||||||
|
|
Loading…
Reference in a new issue