Gerald Pfeifer : msi: Fix the return value of msi_copy_outval in the error case.
Alexandre Julliard
julliard at winehq.org
Mon May 10 11:59:12 CDT 2010
Module: wine
Branch: master
Commit: acd9732ffe49b6b846dbefb7a514a0638ae7f00b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=acd9732ffe49b6b846dbefb7a514a0638ae7f00b
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri May 7 21:22:34 2010 +0200
msi: Fix the return value of msi_copy_outval in the error case.
---
dlls/msi/msi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c
index 646963d..3170e6d 100644
--- a/dlls/msi/msi.c
+++ b/dlls/msi/msi.c
@@ -1216,7 +1216,7 @@ done:
static UINT msi_copy_outval(LPWSTR val, LPWSTR out, LPDWORD size)
{
- UINT r;
+ UINT r = ERROR_SUCCESS;
if (!val)
return ERROR_UNKNOWN_PROPERTY;
@@ -1236,7 +1236,7 @@ static UINT msi_copy_outval(LPWSTR val, LPWSTR out, LPDWORD size)
if (size)
*size = lstrlenW(val);
- return ERROR_SUCCESS;
+ return r;
}
UINT WINAPI MsiGetProductInfoExW(LPCWSTR szProductCode, LPCWSTR szUserSid,
More information about the wine-cvs
mailing list