Make sure not to access invalid components or features.

This commit is contained in:
Mike McCormack 2005-09-12 11:08:20 +00:00 committed by Alexandre Julliard
parent 9dc4921e2f
commit cbb5709a04

View file

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