Sebastian Lackner : wbemprox: Do not return error in HRESULT functions.
Module: wine Branch: master Commit: 9429c1a2ecd20b70185620d26057281daceef8c5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9429c1a2ecd20b70185620d260... Author: Sebastian Lackner <sebastian(a)fds-team.de> Date: Tue Sep 13 09:03:57 2016 +0200 wbemprox: Do not return error in HRESULT functions. Signed-off-by: Sebastian Lackner <sebastian(a)fds-team.de> Signed-off-by: Hans Leidekker <hans(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wbemprox/reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wbemprox/reg.c b/dlls/wbemprox/reg.c index 7544c3c..9232db7 100644 --- a/dlls/wbemprox/reg.c +++ b/dlls/wbemprox/reg.c @@ -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++;
participants (1)
-
Alexandre Julliard