msi: Only double the size if the remote call is from MsiGetPropertyA.

This commit is contained in:
James Hawkins 2007-07-17 17:50:15 -07:00 committed by Alexandre Julliard
parent 929acbcb7f
commit 24e158e972

View file

@ -1475,7 +1475,10 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
goto done;
r = msi_strcpy_to_awstring( value, szValueBuf, pchValueBuf );
*pchValueBuf *= sizeof(WCHAR); /* Bug required by Adobe installers */
/* Bug required by Adobe installers */
if (!szValueBuf->unicode)
*pchValueBuf *= sizeof(WCHAR);
done:
IWineMsiRemotePackage_Release(remote_package);