msi: MsiCollectUserInfo cannot be called from a custom action (Coverity 565, 566).
This commit is contained in:
parent
cb958cd773
commit
baf86bd5bb
|
@ -2927,7 +2927,11 @@ UINT WINAPI MsiCollectUserInfoW(LPCWSTR szProduct)
|
|||
if (rc != ERROR_SUCCESS)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
/* MsiCollectUserInfo cannot be called from a custom action. */
|
||||
package = msihandle2msiinfo(handle, MSIHANDLETYPE_PACKAGE);
|
||||
if (!package)
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
|
||||
rc = ACTION_PerformUIAction(package, szFirstRun, -1);
|
||||
msiobj_release( &package->hdr );
|
||||
|
||||
|
@ -2949,7 +2953,11 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR szProduct)
|
|||
if (rc != ERROR_SUCCESS)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
/* MsiCollectUserInfo cannot be called from a custom action. */
|
||||
package = msihandle2msiinfo(handle, MSIHANDLETYPE_PACKAGE);
|
||||
if (!package)
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
|
||||
rc = ACTION_PerformUIAction(package, szFirstRun, -1);
|
||||
msiobj_release( &package->hdr );
|
||||
|
||||
|
|
Loading…
Reference in New Issue