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

Alexandre Julliard julliard at winehq.org
Tue Oct 16 07:59:49 CDT 2007


Module: wine
Branch: master
Commit: 0e2db26fa3c16ccf2c4460ad39b544d9c358ec88
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0e2db26fa3c16ccf2c4460ad39b544d9c358ec88

Author: James Hawkins <truiken at 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:




More information about the wine-cvs mailing list