msi: Check comp for NULL from msi_get_loaded_component (Coverity).

This commit is contained in:
Marcus Meissner 2011-05-18 09:57:44 +02:00 committed by Alexandre Julliard
parent 38a797990c
commit 97b82b0f18
1 changed files with 3 additions and 0 deletions

View File

@ -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");