msi: Check comp for NULL from msi_get_loaded_component (Coverity).
This commit is contained in:
parent
38a797990c
commit
97b82b0f18
|
@ -1180,6 +1180,9 @@ static UINT ITERATE_RemoveFiles(MSIRECORD *row, LPVOID param)
|
|||
install_mode = MSI_RecordGetInteger(row, 5);
|
||||
|
||||
comp = msi_get_loaded_component(package, component);
|
||||
if (!comp)
|
||||
return ERROR_SUCCESS;
|
||||
|
||||
if (!comp->Enabled)
|
||||
{
|
||||
TRACE("component is disabled\n");
|
||||
|
|
Loading…
Reference in New Issue