[USER32] Fix IsWindow by not using WNDS2_INDESTROY (#6066)

Based on I_Kill_Bugs' IsWinodw.patch.
CORE-11722, CORE-16432
This commit is contained in:
Katayama Hirofumi MZ
2023-12-01 09:08:58 +09:00
committed by GitHub
parent f92c44b217
commit 84e8ea0dd5

View 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;
}