msi: Fix the return value of msi_copy_outval in the error case.

This commit is contained in:
Gerald Pfeifer 2010-05-07 21:22:34 +02:00 committed by Alexandre Julliard
parent 4339944fae
commit acd9732ffe
1 changed files with 2 additions and 2 deletions

View File

@ -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,