=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdiplus: Adjust identical conditions (PVS-Studio).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 28 02:24:35 CDT 2014
Module: wine
Branch: master
Commit: f1ed09fdd961cd3bde36e2cfd96cadcdd56d1083
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f1ed09fdd961cd3bde36e2cfd96cadcdd56d1083
Author: André Hentschel <nerv at dawncrow.de>
Date: Mon Oct 27 23:56:10 2014 +0100
gdiplus: Adjust identical conditions (PVS-Studio).
---
dlls/gdiplus/graphics.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 169d92c..d192bf2 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -1779,7 +1779,7 @@ static GpStatus draw_poly(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *
for(i = 1; i < count; i++){
if((types[i] & PathPointTypePathTypeMask) == PathPointTypeBezier){
if((i + 2 >= count) || !(types[i + 1] & PathPointTypeBezier)
- || !(types[i + 1] & PathPointTypeBezier)){
+ || !(types[i + 2] & PathPointTypeBezier)){
ERR("Bad bezier points\n");
goto end;
}
More information about the wine-cvs
mailing list