Hans Leidekker : msi: Fix some copy/
paste bugs in the implementation of condition operators.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 5 07:28:17 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: c077aaf11689586a4a961c2f9349cd04998bca6a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c077aaf11689586a4a961c2f9349cd04998bca6a
Author: Hans Leidekker <hans at it.vu.nl>
Date: Mon Jun 5 12:54:20 2006 +0200
msi: Fix some copy/paste bugs in the implementation of condition operators.
---
dlls/msi/cond.y | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/msi/cond.y b/dlls/msi/cond.y
index b32c417..031c489 100644
--- a/dlls/msi/cond.y
+++ b/dlls/msi/cond.y
@@ -463,7 +463,7 @@ static INT compare_int( INT a, INT opera
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
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 }
};
More information about the wine-cvs
mailing list