Commit 0e2db26f authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

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

parent d4ea51dd
...@@ -1477,7 +1477,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name, ...@@ -1477,7 +1477,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
r = msi_strcpy_to_awstring( value, szValueBuf, pchValueBuf ); r = msi_strcpy_to_awstring( value, szValueBuf, pchValueBuf );
/* Bug required by Adobe installers */ /* Bug required by Adobe installers */
if (!szValueBuf->unicode) if (!szValueBuf->unicode && !szValueBuf->str.a)
*pchValueBuf *= sizeof(WCHAR); *pchValueBuf *= sizeof(WCHAR);
done: done:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment