From 716f1152932717cabe030ed39ccf3d9dfdafd7b5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 20 Jul 2013 09:09:08 +0200 Subject: [PATCH] gdiplus/tests: Check return code of GdipGetClipBounds (Coverity). --- dlls/gdiplus/tests/graphics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 15c5e4337d1..27c2c1363a7 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -707,7 +707,9 @@ static void test_BeginContainer2(void) status = GdipEndContainer(graphics, cont2); expect(Ok, status); - GdipGetClipBounds(graphics, &clip); + status = GdipGetClipBounds(graphics, &clip); + expect(Ok, status); + ok(fabs(defClip[0] - clip.X) < 0.0001 && fabs(defClip[1] - clip.Y) < 0.0001 && fabs(defClip[2] - clip.Width) < 0.0001 &&