EnumWindows
Tommy Schultz Lassen
tlassen at tlassen.dk
Sat Jan 12 06:29:50 CST 2002
Why does EnumWindows return FALSE if no windows exists. Should it not
return TRUE instead. Her is a patch witch changes it.
-------------- next part --------------
diff -r -u wine/windows/win.c wine-min/windows/win.c
--- wine/windows/win.c Wed Jan 9 20:09:06 2002
+++ wine-min/windows/win.c Sat Jan 12 13:05:44 2002
@@ -2862,7 +2862,7 @@
/* unpleasant side-effects, for instance if the callback */
/* function changes the Z-order of the windows. */
- if (!(list = WIN_ListChildren( GetDesktopWindow() ))) return FALSE;
+ if (!(list = WIN_ListChildren( GetDesktopWindow() ))) return TRUE;
/* Now call the callback function for every window */
@@ -2888,7 +2888,7 @@
int i, iWndsLocks;
if (!(list = list_window_children( GetDesktopWindow(), 0, GetCurrentThreadId() )))
- return FALSE;
+ return TRUE ;
/* Now call the callback function for every window */
-------------- next part --------------
Tommy.
More information about the wine-devel
mailing list