A few small fixes.

This commit is contained in:
Aric Stewart 2005-05-18 17:46:38 +00:00 committed by Alexandre Julliard
parent c5a1443fd9
commit d5bfaf7897
1 changed files with 4 additions and 2 deletions

View File

@ -181,7 +181,7 @@ term:
}
| value_s
{
$$ = $1[0] ? MSICONDITION_TRUE : MSICONDITION_FALSE;
$$ = ($1 && $1[0]) ? MSICONDITION_TRUE : MSICONDITION_FALSE;
}
| value_i comp_op_i value_i
{
@ -739,7 +739,9 @@ MSICONDITION MSI_EvaluateConditionW( MSIPACKAGE *package, LPCWSTR szCondition )
TRACE("Evaluating %s\n",debugstr_w(szCondition));
if( szCondition && !COND_parse( &cond ) )
if ( szCondition == NULL || szCondition[0] == 0)
r = MSICONDITION_NONE;
else if ( !COND_parse( &cond ) )
r = cond.result;
else
r = MSICONDITION_ERROR;