msi: Fix calculation of required buffer size in MsiSummaryInfoGetPropertyW.

This commit is contained in:
Hans Leidekker 2009-10-23 10:49:44 +02:00 committed by Alexandre Julliard
parent 0f127fc7a1
commit e58ebbf3e0
1 changed files with 2 additions and 3 deletions

View File

@ -607,9 +607,8 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
if( str->unicode )
{
len = MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1,
str->str.w, *pcchValueBuf );
len--;
len = MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1, NULL, 0 ) - 1;
MultiByteToWideChar( CP_ACP, 0, prop->u.pszVal, -1, str->str.w, *pcchValueBuf );
}
else
{