msi: Do not return ERROR_* constant in HRESULT function.
Sebastian Lackner
sebastian at fds-team.de
Tue Sep 13 10:53:20 CDT 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
.../dlls/msi/msi.c:2546:48: warning: Returning type 'int' in function with HRESULT return type [wine-hresult-check]
if (path && !(pathW = strdupAtoW( path ))) return ERROR_OUTOFMEMORY;
dlls/msi/msi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index ecc3e94..e812ebb 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -2543,7 +2543,7 @@ HRESULT WINAPI MsiGetFileSignatureInformationA( LPCSTR path, DWORD flags, PCCERT
TRACE("%s %08x %p %p %p\n", debugstr_a(path), flags, cert, hash, hashlen);
- if (path && !(pathW = strdupAtoW( path ))) return ERROR_OUTOFMEMORY;
+ if (path && !(pathW = strdupAtoW( path ))) return E_OUTOFMEMORY;
r = MsiGetFileSignatureInformationW( pathW, flags, cert, hash, hashlen );
msi_free( pathW );
return r;
--
2.9.0
More information about the wine-patches
mailing list