From 6a38a2f69d268e8e5c61993f97b02f9e88c1c3c2 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 11 Jul 2005 02:43:24 +0000 Subject: [PATCH] Fix error return for WIN_ListChildren. svn path=/trunk/; revision=16531 --- reactos/lib/user32/windows/mdi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/user32/windows/mdi.c b/reactos/lib/user32/windows/mdi.c index fb9844dbdf4..1ea583ffbd7 100644 --- a/reactos/lib/user32/windows/mdi.c +++ b/reactos/lib/user32/windows/mdi.c @@ -157,7 +157,7 @@ HWND* WIN_ListChildren (HWND hWndparent) dwCount = NtUserBuildHwndList ( NULL, hWndparent, FALSE, 0, 0, NULL, 0 ); if ( !dwCount || GetLastError() ) - return FALSE; + return 0; /* allocate buffer to receive HWND handles */ hHeap = GetProcessHeap(); @@ -166,7 +166,7 @@ HWND* WIN_ListChildren (HWND hWndparent) if ( !pHwnd ) { SetLastError ( ERROR_NOT_ENOUGH_MEMORY ); - return FALSE; + return 0; } /* now call kernel again to fill the buffer this time */ @@ -176,7 +176,7 @@ HWND* WIN_ListChildren (HWND hWndparent) { if ( pHwnd ) HeapFree ( hHeap, 0, pHwnd ); - return FALSE; + return 0; } return pHwnd;