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

Alexandre Julliard julliard at winehq.org
Mon Jan 28 16:17:00 CST 2019


Module: wine
Branch: master
Commit: 64edf6f79d1523cdf68225d350762a60a0c89792
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=64edf6f79d1523cdf68225d350762a60a0c89792

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jan 27 09:41:15 2019 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/usp10/tests/usp10.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index e907c8c..4c16df5 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -3019,6 +3019,7 @@ static void test_ScriptXtoX(void)
         WORD clust = 0;
         INT advance = 16;
         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);
     }
     for (iX = 8; iX < 16; iX++)
@@ -3026,6 +3027,7 @@ static void test_ScriptXtoX(void)
         WORD clust = 0;
         INT advance = 16;
         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);
     }
 




More information about the wine-cvs mailing list