msi: Fix some copy/paste bugs in the implementation of condition operators.

This commit is contained in:
Hans Leidekker 2006-06-05 12:54:20 +02:00 committed by Alexandre Julliard
parent 92deacbe42
commit c077aaf116
1 changed files with 7 additions and 7 deletions

View File

@ -463,7 +463,7 @@ static INT compare_int( INT a, INT operator, INT b )
return a >= b;
case COND_LE:
case COND_ILE:
return a >= b;
return a <= b;
case COND_SS:
case COND_ISS:
return ( a & b ) ? 1 : 0;
@ -492,21 +492,21 @@ static int COND_GetOperator( COND_input *cond )
int id;
} table[] = {
{ {'~','=',0}, COND_IEQ },
{ {'~','>','=',0}, COND_ILE },
{ {'~','<','=',0}, COND_ILE },
{ {'~','>','<',0}, COND_ISS },
{ {'~','>','>',0}, COND_IRHS },
{ {'~','>',0}, COND_ILT },
{ {'~','<','>',0}, COND_INE },
{ {'~','<','=',0}, COND_IGE },
{ {'~','<',0}, COND_ILT },
{ {'~','>','=',0}, COND_IGE },
{ {'~','<','<',0}, COND_ILHS },
{ {'~','<',0}, COND_IGT },
{ {'~','>',0}, COND_IGT },
{ {'>','=',0}, COND_GE },
{ {'>','<',0}, COND_SS },
{ {'>','>',0}, COND_LHS },
{ {'<','<',0}, COND_LHS },
{ {'>',0}, COND_GT },
{ {'<','>',0}, COND_NE },
{ {'<','=',0}, COND_LE },
{ {'<','<',0}, COND_RHS },
{ {'>','>',0}, COND_RHS },
{ {'<',0}, COND_LT },
{ {0}, 0 }
};