Make EnumWindows return TRUE if no windows exists.

oldstable
Tommy Schultz Lassen 2002-01-22 00:50:07 +00:00 committed by Alexandre Julliard
parent a0324f7172
commit 440adc193a
1 changed files with 2 additions and 2 deletions

View File

@ -2862,7 +2862,7 @@ BOOL WINAPI EnumWindows( WNDENUMPROC lpEnumFunc, LPARAM lParam )
/* unpleasant side-effects, for instance if the callback */ /* unpleasant side-effects, for instance if the callback */
/* function changes the Z-order of the windows. */ /* 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 */ /* Now call the callback function for every window */
@ -2888,7 +2888,7 @@ BOOL WINAPI EnumThreadWindows( DWORD id, WNDENUMPROC func, LPARAM lParam )
int i, iWndsLocks; int i, iWndsLocks;
if (!(list = list_window_children( GetDesktopWindow(), 0, GetCurrentThreadId() ))) if (!(list = list_window_children( GetDesktopWindow(), 0, GetCurrentThreadId() )))
return FALSE; return TRUE ;
/* Now call the callback function for every window */ /* Now call the callback function for every window */