usp10/tests: Add missing return value tests (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-12-23 13:22:28 +03:00 committed by Alexandre Julliard
parent 43034dee45
commit ee04cb5475
1 changed files with 2 additions and 0 deletions

View File

@ -3150,6 +3150,7 @@ static void test_ScriptXtoX(void)
WORD clust = 0; WORD clust = 0;
INT advance = 16; INT advance = 16;
hr = ScriptXtoCP(iX, 1, 1, &clust, psva, &advance, &sa, &piCP, &piTrailing); hr = ScriptXtoCP(iX, 1, 1, &clust, psva, &advance, &sa, &piCP, &piTrailing);
ok(hr == S_OK, "ScriptXtoCP() failed, hr %#x.\n", hr);
ok(piCP==0 && piTrailing==1,"%i should return 0(%i) and 1(%i)\n",iX,piCP,piTrailing); ok(piCP==0 && piTrailing==1,"%i should return 0(%i) and 1(%i)\n",iX,piCP,piTrailing);
} }
for (iX = 9; iX < 16; iX++) for (iX = 9; iX < 16; iX++)
@ -3157,6 +3158,7 @@ static void test_ScriptXtoX(void)
WORD clust = 0; WORD clust = 0;
INT advance = 16; INT advance = 16;
hr = ScriptXtoCP(iX, 1, 1, &clust, psva, &advance, &sa, &piCP, &piTrailing); hr = ScriptXtoCP(iX, 1, 1, &clust, psva, &advance, &sa, &piCP, &piTrailing);
ok(hr == S_OK, "ScriptXtoCP() failed, hr %#x.\n", hr);
ok(piCP==0 && piTrailing==0,"%i should return 0(%i) and 0(%i)\n",iX,piCP,piTrailing); ok(piCP==0 && piTrailing==0,"%i should return 0(%i) and 0(%i)\n",iX,piCP,piTrailing);
} }