Commit 96e24c1d authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Explicitly check for MSICONDITION_TRUE being returned from

MsiEvaluateCondition.
parent 9c845851
......@@ -1377,7 +1377,7 @@ static UINT msi_dialog_set_control_condition( MSIRECORD *rec, LPVOID param )
condition = MSI_RecordGetString( rec, 4 );
r = MSI_EvaluateConditionW( dialog->package, condition );
control = msi_dialog_find_control( dialog, name );
if( r && control )
if( r == MSICONDITION_TRUE && control )
{
TRACE("%s control %s\n", debugstr_w(action), debugstr_w(name));
......@@ -1626,7 +1626,7 @@ static UINT msi_dialog_control_event( MSIRECORD *rec, LPVOID param )
condition = MSI_RecordGetString( rec, 5 );
r = MSI_EvaluateConditionW( dialog->package, condition );
if( r )
if( r == MSICONDITION_TRUE )
{
event = MSI_RecordGetString( rec, 3 );
arg = MSI_RecordGetString( rec, 4 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment