Michael Stefaniuc : oleaut32/tests: Remove always true ok conditions ( PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 29 07:36:58 CDT 2014
Module: wine
Branch: master
Commit: 53c54d922229210afcfbad697ed46caf013228ba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=53c54d922229210afcfbad697ed46caf013228ba
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Oct 28 23:41:14 2014 +0100
oleaut32/tests: Remove always true ok conditions (PVS-Studio).
---
dlls/oleaut32/tests/vartest.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 224dad3..d00e577 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -7403,10 +7403,10 @@ static void test_VarPow(void)
hres = pVarPow(&cy, &right, &result);
if (hres == S_OK)
{
- ok(hres == S_OK && V_VT(&result) == VT_R8,
+ ok(V_VT(&result) == VT_R8,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!\n",
S_OK, hres, vtstr(V_VT(&result)));
- ok(hres == S_OK && EQ_DOUBLE(V_R8(&result), 4.0),
+ ok(EQ_DOUBLE(V_R8(&result), 4.0),
"VARPOW: CY value %f, expected %f\n", V_R8(&result), 4.0);
}
else
@@ -7440,10 +7440,10 @@ static void test_VarPow(void)
hres = pVarPow(&dec, &right, &result);
if (hres == S_OK)
{
- ok(hres == S_OK && V_VT(&result) == VT_R8,
+ ok(V_VT(&result) == VT_R8,
"VARPOW: expected coerced hres 0x%X type VT_R8, got hres 0x%X type %s!\n",
S_OK, hres, vtstr(V_VT(&result)));
- ok(hres == S_OK && EQ_DOUBLE(V_R8(&result), 4.0),
+ ok(EQ_DOUBLE(V_R8(&result), 4.0),
"VARPOW: DECIMAL value %f, expected %f\n", V_R8(&result), 4.0);
}
else
More information about the wine-cvs
mailing list