https://git.reactos.org/?p=reactos.git;a=commitdiff;h=84e8ea0dd5e9c8a6be298…
commit 84e8ea0dd5e9c8a6be2984db6dd38401d25a822b
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Dec 1 09:08:58 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Dec 1 09:08:58 2023 +0900
[USER32] Fix IsWindow by not using WNDS2_INDESTROY (#6066)
Based on I_Kill_Bugs' IsWinodw.patch.
CORE-11722, CORE-16432
---
win32ss/user/user32/windows/window.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c
index 93dd53358c5..a0efdfab2b2 100644
--- a/win32ss/user/user32/windows/window.c
+++ b/win32ss/user/user32/windows/window.c
@@ -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;
}