[PATCH v2] oleaut32/tests: Report the error when VarParseNumFromStr() fails.

Francois Gouget fgouget at codeweavers.com
Tue Jul 20 06:59:22 CDT 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
v2: Duplicate the check in ok() and if ().
    An alternative would be to put an else ok(0, ...) instead.
---
 dlls/oleaut32/tests/vartest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index b18e6e3f3a0..136d2ddd521 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -1288,6 +1288,7 @@ static HRESULT convert_str( const char *str, INT dig, ULONG flags,
 static void expect_NumFromStr( int line, HRESULT hres, NUMPARSE *np, INT a, ULONG b, ULONG c,
                                INT d, INT e, INT f )
 {
+    ok_(__FILE__,line)(hres == (HRESULT)S_OK, "returned %08x\n", hres);
     if (hres == (HRESULT)S_OK)
     {
         ok_(__FILE__,line)(np->cDig == a, "Expected cDig = %d, got %d\n", a, np->cDig);
-- 
2.20.1



More information about the wine-devel mailing list