[PATCH] gdiplus: check return code of GdipGetClipBounds (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sat Jul 20 02:09:08 CDT 2013
CID 1054168 Unchecked return value
---
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 327fbca..34f7655 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 &&
--
1.7.10.4
More information about the wine-patches
mailing list