msi: Fix calculation of required buffer size in MsiSummaryInfoGetPropertyW.
This commit is contained in:
parent
0f127fc7a1
commit
e58ebbf3e0
|
@ -607,9 +607,8 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
|
||||||
|
|
||||||
if( str->unicode )
|
if( str->unicode )
|
||||||
{
|
{
|
||||||
len = MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1,
|
len = MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1, NULL, 0 ) - 1;
|
||||||
str->str.w, *pcchValueBuf );
|
MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1, str->str.w, *pcchValueBuf );
|
||||||
len--;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue