[PATCH 2/2] oleaut32/tests: Report the error when VarParseNumFromStr() fails.
Francois Gouget
fgouget at codeweavers.com
Thu Jul 8 10:44:37 CDT 2021
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
dlls/oleaut32/tests/vartest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/oleaut32/tests/vartest.c b/dlls/oleaut32/tests/vartest.c
index 8492a720855..e015abc7ee9 100644
--- a/dlls/oleaut32/tests/vartest.c
+++ b/dlls/oleaut32/tests/vartest.c
@@ -1282,7 +1282,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 )
{
- if (hres == (HRESULT)S_OK)
+ if (ok_(__FILE__,line)(hres == (HRESULT)S_OK, "returned %08x\n", hres))
{
ok_(__FILE__,line)(np->cDig == a, "Expected cDig = %d, got %d\n", a, np->cDig);
ok_(__FILE__,line)(np->dwInFlags == b, "Expected dwInFlags = 0x%x, got 0x%x\n", b, np->dwInFlags);
--
2.20.1
More information about the wine-devel
mailing list