Fix error return for WIN_ListChildren.
Modified: trunk/reactos/lib/user32/windows/mdi.c
_____
Modified: trunk/reactos/lib/user32/windows/mdi.c
--- trunk/reactos/lib/user32/windows/mdi.c 2005-07-10 22:23:00 UTC
(rev 16530)
+++ trunk/reactos/lib/user32/windows/mdi.c 2005-07-11 02:43:24 UTC
(rev 16531)
@@ -157,7 +157,7 @@
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 @@
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 @@
{
if ( pHwnd )
HeapFree ( hHeap, 0, pHwnd );
- return FALSE;
+ return 0;
}
return pHwnd;
Show replies by date