msi 2: Only double the size if the remote call is from
MsiGetPropertyA
James Hawkins
truiken at gmail.com
Tue Jul 17 19:50:15 CDT 2007
Hi,
Changelog:
* Only double the size if the remote call is from MsiGetPropertyA.
dlls/msi/package.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
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 h
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);
--
1.4.1
More information about the wine-patches
mailing list