mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix error return for WIN_ListChildren.
svn path=/trunk/; revision=16531
This commit is contained in:
parent
5c73d34569
commit
6a38a2f69d
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue