From e6a4fb691dbf28353a9c356fe22b2e030b799ddb Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 28 Dec 2010 10:03:07 +0000 Subject: [PATCH] [User32] - Fix all the user32 wine win test_parent_owner tests. svn path=/trunk/; revision=50183 --- reactos/dll/win32/user32/windows/window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/dll/win32/user32/windows/window.c b/reactos/dll/win32/user32/windows/window.c index 9ad0f2198c3..b91392f3635 100644 --- a/reactos/dll/win32/user32/windows/window.c +++ b/reactos/dll/win32/user32/windows/window.c @@ -653,6 +653,14 @@ User32EnumWindows(HDESK hDesktop, return FALSE; } + if (!dwCount) + { + if (!dwThreadId) + return FALSE; + else + return TRUE; + } + /* call the user's callback function until we're done or they tell us to quit */ for ( i = 0; i < dwCount; i++ )