wbemprox: Do not return error in HRESULT functions.
Sebastian Lackner
sebastian at fds-team.de
Tue Sep 13 02:03:57 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
.../dlls/wbemprox/reg.c:118:16: warning: Assigning 'int' to 'HRESULT' (aka 'int') [wine-hresult-check]
hr = ERROR_OUTOFMEMORY;
^
.../dlls/wbemprox/reg.c:223:16: warning: Assigning 'int' to 'HRESULT' (aka 'int') [wine-hresult-check]
hr = ERROR_OUTOFMEMORY;
^
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++;
--
2.9.0
More information about the wine-patches
mailing list