mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fix IntIsChildWindow for case where parent is a toplevel window
svn path=/trunk/; revision=8929
This commit is contained in:
parent
a8a999793f
commit
942d7e47a7
1 changed files with 7 additions and 7 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.203 2004/03/30 20:50:15 gvg Exp $
|
||||
/* $Id: window.c,v 1.204 2004/03/30 22:49:38 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -711,12 +711,6 @@ IntIsChildWindow(HWND Parent, HWND Child)
|
|||
Window = BaseWindow;
|
||||
while (Window)
|
||||
{
|
||||
if(!(Window->Style & WS_CHILD))
|
||||
{
|
||||
if(Window != BaseWindow)
|
||||
IntReleaseWindowObject(Window);
|
||||
break;
|
||||
}
|
||||
if (Window->Self == Parent)
|
||||
{
|
||||
if(Window != BaseWindow)
|
||||
|
@ -724,6 +718,12 @@ IntIsChildWindow(HWND Parent, HWND Child)
|
|||
IntReleaseWindowObject(BaseWindow);
|
||||
return(TRUE);
|
||||
}
|
||||
if(!(Window->Style & WS_CHILD))
|
||||
{
|
||||
if(Window != BaseWindow)
|
||||
IntReleaseWindowObject(Window);
|
||||
break;
|
||||
}
|
||||
Old = Window;
|
||||
Window = IntGetParentObject(Window);
|
||||
if(Old != BaseWindow)
|
||||
|
|
Loading…
Reference in a new issue