Module: wine Branch: master Commit: 24e158e972e03c992389c259d05ab41ad1dcc1b5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=24e158e972e03c992389c259d0...
Author: James Hawkins truiken@gmail.com Date: Tue Jul 17 17:50:15 2007 -0700
msi: Only double the size if the remote call is from MsiGetPropertyA.
---
dlls/msi/package.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c index 0309dc3..35cd328 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -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);