Author: tkreuzer Date: Wed Feb 28 16:21:09 2007 New Revision: 25921
URL: http://svn.reactos.org/svn/reactos?rev=25921&view=rev Log: EnumChildWindows: - if hWndParent == NULL: call EnumWindows - else use bChildren = TRUE
Modified: trunk/reactos/dll/win32/user32/windows/window.c
Modified: trunk/reactos/dll/win32/user32/windows/window.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/wi... ============================================================================== --- trunk/reactos/dll/win32/user32/windows/window.c (original) +++ trunk/reactos/dll/win32/user32/windows/window.c Wed Feb 28 16:21:09 2007 @@ -551,8 +551,10 @@ LPARAM lParam) { if ( !hWndParent ) - hWndParent = GetDesktopWindow(); - return User32EnumWindows ( NULL, hWndParent, lpEnumFunc, lParam, 0, FALSE ); + { + return EnumWindows(lpEnumFunc, lParam); + } + return User32EnumWindows ( NULL, hWndParent, lpEnumFunc, lParam, 0, TRUE ); }