- Fix a FIXME and fix the last test in wine Win test_ShowWindow.
authorJames Tabor <james.tabor@reactos.org>
Sat, 2 Jun 2012 03:56:23 +0000 (03:56 +0000)
committerJames Tabor <james.tabor@reactos.org>
Sat, 2 Jun 2012 03:56:23 +0000 (03:56 +0000)
svn path=/trunk/; revision=56689

reactos/win32ss/user/user32/windows/window.c

index 6dc8648..53ed882 100644 (file)
@@ -1501,7 +1501,9 @@ IsWindow(HWND hWnd)
     PWND Wnd = ValidateHwndNoErr(hWnd);
     if (Wnd != NULL)
     {
-        /* FIXME: If window is being destroyed return FALSE! */
+        if (Wnd->state & WNDS_DESTROYED ||
+            Wnd->state2 & WNDS2_INDESTROY)
+           return FALSE;
         return TRUE;
     }