James Hawkins : msi: Only double the returned size when szValueBuf is NULL.
Module: wine Branch: master Commit: 0e2db26fa3c16ccf2c4460ad39b544d9c358ec88 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e2db26fa3c16ccf2c4460ad39... Author: James Hawkins <truiken(a)gmail.com> Date: Mon Oct 15 22:25:16 2007 -0500 msi: Only double the returned size when szValueBuf is NULL. --- dlls/msi/package.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/package.c b/dlls/msi/package.c index bb473cd..e9b6309 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -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:
participants (1)
-
Alexandre Julliard