gdiplus: Adjust identical conditions (PVS-Studio).

This commit is contained in:
André Hentschel 2014-10-27 23:56:10 +01:00 committed by Alexandre Julliard
parent e404d7fea3
commit f1ed09fdd9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}