diff --git a/dlls/msi/helpers.c b/dlls/msi/helpers.c index 08cd3b25b6c..2e0d9194a5d 100644 --- a/dlls/msi/helpers.c +++ b/dlls/msi/helpers.c @@ -772,6 +772,9 @@ void ui_actiondata(MSIPACKAGE *package, LPCWSTR action, MSIRECORD * record) BOOL ACTION_VerifyComponentForAction(MSIPACKAGE* package, MSICOMPONENT* comp, INSTALLSTATE check ) { + if (!comp) + return FALSE; + if (comp->Installed == check) return FALSE; @@ -783,6 +786,9 @@ BOOL ACTION_VerifyComponentForAction(MSIPACKAGE* package, MSICOMPONENT* comp, BOOL ACTION_VerifyFeatureForAction( MSIFEATURE* feature, INSTALLSTATE check ) { + if (!feature) + return FALSE; + if (feature->Installed == check) return FALSE;