wbemprox: Do not return error in HRESULT functions.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2016-09-13 09:03:57 +02:00 committed by Alexandre Julliard
parent 3a9907cfdc
commit 9429c1a2ec
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ static HRESULT enum_key( HKEY root, const WCHAR *subkey, VARIANT *names, VARIANT
if (!(strings[i] = SysAllocString( buf )))
{
for (i--; i >= 0; i--) SysFreeString( strings[i] );
hr = ERROR_OUTOFMEMORY;
hr = E_OUTOFMEMORY;
break;
}
i++;
@ -220,7 +220,7 @@ static HRESULT enum_values( HKEY root, const WCHAR *subkey, VARIANT *names, VARI
if (!(value_names[i] = SysAllocString( buf )))
{
for (i--; i >= 0; i--) SysFreeString( value_names[i] );
hr = ERROR_OUTOFMEMORY;
hr = E_OUTOFMEMORY;
break;
}
i++;