Commit b857369f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

msi: Do not attempt to copy a non-string property in MsiSummaryInfoGetProperty.

This patch fixes the crashes when running the tests under Wine. Currently the crashes are hidden by a custom action exception handler. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 7929c31e
......@@ -758,8 +758,10 @@ UINT WINAPI MsiSummaryInfoGetPropertyA(
}
__ENDTRY
if (!r)
if (!r && buf)
{
r = msi_strncpyWtoA( buf, -1, szValueBuf, pcchValueBuf, TRUE );
}
midl_user_free( buf );
return r;
......@@ -808,7 +810,7 @@ UINT WINAPI MsiSummaryInfoGetPropertyW(
}
__ENDTRY
if (!r)
if (!r && buf)
r = msi_strncpyW( buf, -1, szValueBuf, pcchValueBuf );
midl_user_free( buf );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment