Nikolay Sivov : d2d1/tests: Add return value test (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Feb 2 15:52:09 CST 2021


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Feb  1 13:59:50 2021 +0300

d2d1/tests: Add return value test (Coverity).

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

---

 dlls/d2d1/tests/d2d1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 7c1ff9dc197..8d584605819 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -7701,7 +7701,8 @@ static void test_gdi_interop(BOOL d3d11)
 todo_wine
     ok(dc == NULL, "Expected NULL dc, got %p.\n", dc);
     ID2D1GdiInteropRenderTarget_Release(interop);
-    ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
+    hr = ID2D1RenderTarget_EndDraw(rt, NULL, NULL);
+    ok(SUCCEEDED(hr), "Failed to end draw, hr %#x.\n", hr);
 
     ID2D1RenderTarget_Release(rt);
 




More information about the wine-cvs mailing list