Don't dereference variables in a trace.
This commit is contained in:
parent
35dbc147c7
commit
1256a0c323
|
@ -881,7 +881,7 @@ UINT WINAPI MsiGetPropertyA(MSIHANDLE hInstall, LPCSTR szName, LPSTR szValueBuf,
|
|||
MSIPACKAGE *package;
|
||||
UINT ret;
|
||||
|
||||
TRACE("%lu %s %lu\n", hInstall, debugstr_a(szName), *pchValueBuf);
|
||||
TRACE("%lu %s %p\n", hInstall, debugstr_a(szName), pchValueBuf);
|
||||
|
||||
if (0 == hInstall)
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
@ -902,8 +902,8 @@ UINT WINAPI MsiGetPropertyA(MSIHANDLE hInstall, LPCSTR szName, LPSTR szValueBuf,
|
|||
|
||||
/* MsiGetProperty does not return error codes on missing properties */
|
||||
if (ret != ERROR_MORE_DATA)
|
||||
return ERROR_SUCCESS;
|
||||
else
|
||||
ret = ERROR_SUCCESS;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -914,6 +914,8 @@ UINT WINAPI MsiGetPropertyW(MSIHANDLE hInstall, LPCWSTR szName,
|
|||
MSIPACKAGE *package;
|
||||
UINT ret;
|
||||
|
||||
TRACE("%lu %s %p\n", hInstall, debugstr_w(szName), pchValueBuf);
|
||||
|
||||
if (0 == hInstall)
|
||||
return ERROR_INVALID_HANDLE;
|
||||
if (NULL == szName)
|
||||
|
@ -933,7 +935,7 @@ UINT WINAPI MsiGetPropertyW(MSIHANDLE hInstall, LPCWSTR szName,
|
|||
|
||||
/* MsiGetProperty does not return error codes on missing properties */
|
||||
if (ret != ERROR_MORE_DATA)
|
||||
return ERROR_SUCCESS;
|
||||
else
|
||||
ret = ERROR_SUCCESS;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue