mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
There can never be a parent/child relationship between windows if one of
them is invalid. Fixes bug #217. svn path=/trunk/; revision=8998
This commit is contained in:
parent
4783e5bae8
commit
c44ac169e6
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: window.c,v 1.105 2004/04/02 23:54:26 weiden Exp $
|
||||
/* $Id: window.c,v 1.106 2004/04/07 08:25:40 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS user32.dll
|
||||
|
@ -1018,6 +1018,11 @@ BOOL STDCALL
|
|||
IsChild(HWND hWndParent,
|
||||
HWND hWnd)
|
||||
{
|
||||
if (! IsWindow(hWndParent) || ! IsWindow(hWnd))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
hWnd = (HWND)NtUserGetWindowLong(hWnd, GWL_HWNDPARENT, FALSE);
|
||||
|
|
Loading…
Reference in a new issue