oleaut32/tests: Remove an always true conditional subexpression (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Sat Feb 21 11:06:16 CST 2015
---
dlls/oleaut32/tests/vartest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 7ed4fd4..cf9e101 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -7548,7 +7548,7 @@ static void test_VarDiv(void)
}
/* Determine return type */
- if (!(rightvt == VT_EMPTY))
+ if (rightvt != VT_EMPTY)
{
if (leftvt == VT_NULL || rightvt == VT_NULL)
resvt = VT_NULL;
@@ -7577,7 +7577,7 @@ static void test_VarDiv(void)
else if (leftvt == VT_R4 || rightvt == VT_R4)
resvt = VT_R4;
}
- else if (leftvt == VT_NULL && rightvt == VT_EMPTY)
+ else if (leftvt == VT_NULL)
resvt = VT_NULL;
else
bFail = TRUE;
--
1.9.3
More information about the wine-patches
mailing list