From c86f2c29ff6fbb7a3437b599b68b04d035f649ad Mon Sep 17 00:00:00 2001 From: Royal Chan Date: Sun, 10 Feb 2008 12:40:52 -0800 Subject: [PATCH] gdiplus: draw_polyline never sets status from GenericError to Ok on successful calls. --- dlls/gdiplus/graphics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 684a3b4788c..aed61c58716 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -505,7 +505,8 @@ static GpStatus draw_polyline(GpGraphics *graphics, GpPen *pen, transform_and_round_points(graphics, pti, ptcopy, count); - Polyline(graphics->hdc, pti, count); + if(Polyline(graphics->hdc, pti, count)) + status = Ok; end: GdipFree(pti); -- 2.11.4.GIT