Commit 9429c1a2 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

wbemprox: Do not return error in HRESULT functions.

parent 3a9907cf
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment