Commit d784600d authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

MsiGetProperty should return empty strings on error.

parent 8f0a7619
......@@ -576,6 +576,12 @@ UINT WINAPI MsiGetPropertyA(MSIHANDLE hInstall, LPCSTR szName, LPSTR szValueBuf,
goto end;
}
if( *pchValueBuf > 0 )
{
/* be sure to blank the string first */
szValueBuf[0]=0;
}
hr = MsiGetPropertyW( hInstall, szwName, szwValueBuf, pchValueBuf );
if( *pchValueBuf > 0 )
......@@ -624,7 +630,11 @@ UINT WINAPI MsiGetPropertyW(MSIHANDLE hInstall, LPCWSTR szName,
{
DWORD sz;
WCHAR value[0x100];
/* even on unsuccessful lookup native msi blanks this string */
if (*pchValueBuf > 0)
szValueBuf[0] = 0;
rc = MsiViewExecute(view, 0);
if (rc != ERROR_SUCCESS)
{
......
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