Commit in reactos/subsys/win32k/ntuser on MAIN
window.c+6-61.203 -> 1.204
Fix IntIsChildWindow for case where parent is a toplevel window

reactos/subsys/win32k/ntuser
window.c 1.203 -> 1.204
diff -u -r1.203 -r1.204
--- window.c	30 Mar 2004 20:50:15 -0000	1.203
+++ window.c	30 Mar 2004 22:49:38 -0000	1.204
@@ -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,18 +711,18 @@
   Window = BaseWindow;
   while (Window)
   {
-    if(!(Window->Style & WS_CHILD))
+    if (Window->Self == Parent)
     {
       if(Window != BaseWindow)
         IntReleaseWindowObject(Window);
-      break;
+      IntReleaseWindowObject(BaseWindow);
+      return(TRUE);
     }
-    if (Window->Self == Parent)
+    if(!(Window->Style & WS_CHILD))
     {
       if(Window != BaseWindow)
         IntReleaseWindowObject(Window);
-      IntReleaseWindowObject(BaseWindow);
-      return(TRUE);
+      break;
     }
     Old = Window;
     Window = IntGetParentObject(Window);
CVSspam 0.2.8