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;
|
||||
|
@ -901,9 +901,9 @@ UINT WINAPI MsiGetPropertyA(MSIHANDLE hInstall, LPCSTR szName, LPSTR szValueBuf,
|
|||
msiobj_release( &package->hdr );
|
||||
|
||||
/* MsiGetProperty does not return error codes on missing properties */
|
||||
if (ret!= ERROR_MORE_DATA)
|
||||
return ERROR_SUCCESS;
|
||||
else
|
||||
if (ret != ERROR_MORE_DATA)
|
||||
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)
|
||||
|
@ -932,8 +934,8 @@ UINT WINAPI MsiGetPropertyW(MSIHANDLE hInstall, LPCWSTR szName,
|
|||
msiobj_release( &package->hdr );
|
||||
|
||||
/* MsiGetProperty does not return error codes on missing properties */
|
||||
if (ret!= ERROR_MORE_DATA)
|
||||
return ERROR_SUCCESS;
|
||||
else
|
||||
if (ret != ERROR_MORE_DATA)
|
||||
ret = ERROR_SUCCESS;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue