Royal Chan : gdiplus: draw_polyline never sets status from GenericError to Ok on successful calls .
Alexandre Julliard
julliard at winehq.org
Fri Feb 15 05:36:04 CST 2008
Module: wine
Branch: master
Commit: c86f2c29ff6fbb7a3437b599b68b04d035f649ad
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c86f2c29ff6fbb7a3437b599b68b04d035f649ad
Author: Royal Chan <chanroyal at gmail.com>
Date: Sun Feb 10 12:40:52 2008 -0800
gdiplus: draw_polyline never sets status from GenericError to Ok on successful calls.
---
dlls/gdiplus/graphics.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 684a3b4..aed61c5 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);
More information about the wine-cvs
mailing list