msi: Fix a logic error.

This commit is contained in:
Mike McCormack 2006-04-07 13:33:43 +09:00 committed by Alexandre Julliard
parent ed580a1d85
commit ccdd0869a1
1 changed files with 2 additions and 2 deletions

View File

@ -863,8 +863,8 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
* yes. MSDN says that these are based on _Feature_ not on
* Component. So verify the feature is to be installed
*/
if ((!ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_LOCAL )) &&
!(install_on_demand &&
if (!ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_LOCAL ) ||
!(install_on_demand &&
ACTION_VerifyFeatureForAction( feature, INSTALLSTATE_ADVERTISED )))
{
TRACE("Skipping class %s reg due to disabled feature %s\n",