- Fix a FIXME and fix the last test in wine Win test_ShowWindow.
[reactos.git] / 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;
     }