msi: Only double the returned size when szValueBuf is NULL.

oldstable
James Hawkins 2007-10-15 22:25:16 -05:00 committed by Alexandre Julliard
parent d4ea51ddc9
commit 0e2db26fa3
1 changed files with 1 additions and 1 deletions

View File

@ -1477,7 +1477,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
r = msi_strcpy_to_awstring( value, szValueBuf, pchValueBuf );
/* Bug required by Adobe installers */
if (!szValueBuf->unicode)
if (!szValueBuf->unicode && !szValueBuf->str.a)
*pchValueBuf *= sizeof(WCHAR);
done: