[PATCH] user32:EnumThreadWindows return a wrong value
zison sun <[email protected]> Sat, 22 May 2021 11:33:10 +0800
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
According to MSDN,EnumThreadWindows should return FALSE if there are no windows found in the thread specified by dwThreadId
---
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