mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 03:31:43 +00:00
[Should be ported to 0.2.3 release branch too.] svn path=/trunk/; revision=9730
This commit is contained in:
parent
0b27c9bbe9
commit
a3de47e17a
1 changed files with 2 additions and 14 deletions
|
@ -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.237 2004/06/16 06:09:40 gvg Exp $
|
||||
/* $Id: window.c,v 1.238 2004/06/19 20:18:09 navaraf Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -2169,11 +2169,6 @@ NtUserDestroyWindow(HWND Wnd)
|
|||
HOOK_CallHooks( WH_SHELL, HSHELL_WINDOWDESTROYED, (WPARAM)hwnd, 0L, TRUE );
|
||||
/* FIXME: clean up palette - see "Internals" p.352 */
|
||||
}
|
||||
|
||||
if (! IsWindow(Wnd))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!IntIsWindow(Wnd))
|
||||
|
@ -2200,16 +2195,9 @@ NtUserDestroyWindow(HWND Wnd)
|
|||
{
|
||||
Child = IntGetWindowObject(*ChildHandle);
|
||||
if (Child == NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if(Child->Self == Wnd)
|
||||
{
|
||||
IntReleaseWindowObject(Child);
|
||||
continue;
|
||||
}
|
||||
IntLockRelatives(Child);
|
||||
if (Child->Parent != Window->Self)
|
||||
if (Child->Owner != Window->Self)
|
||||
{
|
||||
IntUnLockRelatives(Child);
|
||||
IntReleaseWindowObject(Child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue