msi: Fix the return value of msi_copy_outval in the error case.
This commit is contained in:
parent
4339944fae
commit
acd9732ffe
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue