oleaut32/tests: Report the error when VarParseNumFromStr() fails.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-07-20 13:59:22 +02:00 committed by Alexandre Julliard
parent 542dc085c9
commit 75cbc88ebc
1 changed files with 1 additions and 0 deletions

View File

@ -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);