msi: Remove some unnecessary NULL checks.
This commit is contained in:
parent
d5d4568450
commit
ea3ab4952b
|
@ -883,12 +883,6 @@ static BOOL ACTION_HandleStandardAction(MSIPACKAGE *package, LPCWSTR action,
|
|||
BOOL run = force;
|
||||
int i;
|
||||
|
||||
if (!package)
|
||||
{
|
||||
ERR("package was null!\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (!run && !package->script->CurrentlyScripting)
|
||||
run = TRUE;
|
||||
|
||||
|
@ -1329,9 +1323,6 @@ static UINT load_all_files(MSIPACKAGE *package)
|
|||
'`','F','i','l','e','`',' ', 'O','R','D','E','R',' ','B','Y',' ',
|
||||
'`','S','e','q','u','e','n','c','e','`', 0};
|
||||
|
||||
if (!package)
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
||||
rc = MSI_DatabaseOpenViewW(package->db, Query, &view);
|
||||
if (rc != ERROR_SUCCESS)
|
||||
return ERROR_SUCCESS;
|
||||
|
@ -2248,9 +2239,6 @@ static UINT ACTION_WriteRegistryValues(MSIPACKAGE *package)
|
|||
{'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
|
||||
'`','R','e','g','i','s','t','r','y','`',0 };
|
||||
|
||||
if (!package)
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
||||
rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view);
|
||||
if (rc != ERROR_SUCCESS)
|
||||
return ERROR_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue