https://git.reactos.org/?p=reactos.git;a=commitdiff;h=331be6126305407bc958d…
commit 331be6126305407bc958d4a1fb48022bd81cfe3c
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sat Mar 12 23:22:10 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:27:57 2022 +0100
[WINESYNC] msi: Fix condition evaluation when comparing literal and integer.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=45445
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 7837ae20cdeabab661da7bb5dae24f5ffefe17ee by Piotr Caban
<piotr(a)codeweavers.com>
---
modules/rostests/winetests/msi/package.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/rostests/winetests/msi/package.c
b/modules/rostests/winetests/msi/package.c
index ace9b354f91..d6d90ce39fb 100644
--- a/modules/rostests/winetests/msi/package.c
+++ b/modules/rostests/winetests/msi/package.c
@@ -2097,6 +2097,10 @@ static void test_condition(void)
ok( r == MSICONDITION_FALSE, "wrong return val (%d)\n", r);
r = MsiEvaluateConditionA(hpkg, "&nofeature=\"\"");
ok( r == MSICONDITION_TRUE, "wrong return val (%d)\n", r);
+ r = MsiEvaluateConditionA(hpkg, "&nofeature<>3");
+ ok( r == MSICONDITION_TRUE, "wrong return val (%d)\n", r);
+ r = MsiEvaluateConditionA(hpkg, "\"\"<>3");
+ ok( r == MSICONDITION_TRUE, "wrong return val (%d)\n", r);
r = MsiEvaluateConditionA(hpkg, "!nofeature=\"\"");
ok( r == MSICONDITION_TRUE, "wrong return val (%d)\n", r);
MsiEvaluateConditionA(hpkg, "$nocomponent=\"\"");