From 4481a26504fdc7427632d568a0db784416ae385e Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 28 Feb 2007 13:21:09 +0000 Subject: [PATCH] EnumChildWindows: - if hWndParent == NULL: call EnumWindows - else use bChildren = TRUE svn path=/trunk/; revision=25921 --- reactos/dll/win32/user32/windows/window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 766bbc0de55..7a969bb5aea 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -551,8 +551,10 @@ EnumChildWindows( 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 ); }