mirror of
https://github.com/reactos/wine.git
synced 2025-02-18 03:48:01 +00:00
msi: Reorder the condition operators so that longer strings are matched first.
This allows ~<< to be properly matched.
This commit is contained in:
parent
694219d4a6
commit
39600d9d2e
@ -553,14 +553,14 @@ static int COND_GetOperator( COND_input *cond )
|
||||
const WCHAR str[4];
|
||||
int id;
|
||||
} table[] = {
|
||||
{ {'~','=',0}, COND_IEQ },
|
||||
{ {'~','<','=',0}, COND_ILE },
|
||||
{ {'~','>','<',0}, COND_ISS },
|
||||
{ {'~','>','>',0}, COND_IRHS },
|
||||
{ {'~','<','>',0}, COND_INE },
|
||||
{ {'~','<',0}, COND_ILT },
|
||||
{ {'~','>','=',0}, COND_IGE },
|
||||
{ {'~','<','<',0}, COND_ILHS },
|
||||
{ {'~','=',0}, COND_IEQ },
|
||||
{ {'~','<',0}, COND_ILT },
|
||||
{ {'~','>',0}, COND_IGT },
|
||||
{ {'>','=',0}, COND_GE },
|
||||
{ {'>','<',0}, COND_SS },
|
||||
|
@ -1072,6 +1072,15 @@ static void test_condition(void)
|
||||
r = MsiEvaluateCondition(hpkg, "not LicView");
|
||||
ok( r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "\"Testing\" ~<< \"Testing\"");
|
||||
ok (r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "LicView ~<< \"Testing\"");
|
||||
ok (r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "Not LicView ~<< \"Testing\"");
|
||||
ok (r == MSICONDITION_TRUE, "wrong return val\n");
|
||||
|
||||
r = MsiEvaluateCondition(hpkg, "not \"A\"");
|
||||
ok( r == MSICONDITION_FALSE, "wrong return val\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user