From: Fabian Maurer Subject: [PATCH] gdiplus: Avoid division by zero in SOFTWARE_GdipDrawThinPath Message-Id: <20170724225009.28107-1-dark.shadow4@web.de> Date: Tue, 25 Jul 2017 00:50:09 +0200 Fixes Bug 43290. Signed-off-by: Fabian Maurer --- dlls/gdiplus/graphics.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index c5c66a9ed6..43cd6ac2dd 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -3615,6 +3615,9 @@ static GpStatus SOFTWARE_GdipDrawThinPath(GpGraphics *graphics, GpPen *pen, GpPa end_pointi.X = floorf(end_point.X); end_pointi.Y = floorf(end_point.Y); + if(start_pointi.X == end_pointi.X && start_pointi.Y == end_pointi.Y) + continue; + /* draw line segment */ if (abs(start_pointi.Y - end_pointi.Y) > abs(start_pointi.X - end_pointi.X)) { -- 2.13.3