[PATCH] user32:EnumThreadWindows return a wrong value
zison sun
sunzhixin at uniontech.com
Fri May 21 22:55:16 CDT 2021
According to MSDN,EnumThreadWindows should return FALSE if there are no windows found in the thread specified by dwThreadId
Signed-off-by: Zison Sun <sunzhixin at uniontech.com>
---
dlls/user32/win.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 2f6b2fdf066..5d61917ff67 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -3650,7 +3650,7 @@ BOOL WINAPI EnumThreadWindows( DWORD id, WNDENUMPROC func, LPARAM lParam )
USER_CheckNotLock();
- if (!(list = list_window_children( 0, GetDesktopWindow(), NULL, id ))) return TRUE;
+ if (!(list = list_window_children( 0, GetDesktopWindow(), NULL, id ))) return FALSE;
/* Now call the callback function for every window */
--
2.25.1
More information about the wine-patches
mailing list