[USER32] Fix IsWindow by not using WNDS2_INDESTROY (#6066)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Fri, 1 Dec 2023 00:08:58 +0000 (09:08 +0900)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2023 00:08:58 +0000 (09:08 +0900)
Based on I_Kill_Bugs' IsWinodw.patch.
CORE-11722, CORE-16432

win32ss/user/user32/windows/window.c

index 93dd533..a0efdfa 100644 (file)
@@ -1549,9 +1549,8 @@ IsWindow(HWND hWnd)
     PWND Wnd = ValidateHwndNoErr(hWnd);
     if (Wnd != NULL)
     {
-        if (Wnd->state & WNDS_DESTROYED ||
-            Wnd->state2 & WNDS2_INDESTROY)
-           return FALSE;
+        if (Wnd->state & WNDS_DESTROYED)
+            return FALSE;
         return TRUE;
     }