Commit 9af15023 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdiplus: Convert and pass in 3 points, not 1 (Coverity).

parent d2dd407e
...@@ -105,7 +105,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint ...@@ -105,7 +105,8 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
GpMatrix **matrix) GpMatrix **matrix)
{ {
GpRectF rectF; GpRectF rectF;
GpPointF ptF; GpPointF ptF[3];
int i;
TRACE("(%p, %p, %p)\n", rect, pt, matrix); TRACE("(%p, %p, %p)\n", rect, pt, matrix);
...@@ -114,10 +115,11 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint ...@@ -114,10 +115,11 @@ GpStatus WINGDIPAPI GdipCreateMatrix3I(GDIPCONST GpRect *rect, GDIPCONST GpPoint
rectF.Width = (REAL)rect->Width; rectF.Width = (REAL)rect->Width;
rectF.Height = (REAL)rect->Height; rectF.Height = (REAL)rect->Height;
ptF.X = (REAL)pt->X; for (i = 0; i < 3; i++) {
ptF.Y = (REAL)pt->Y; ptF[i].X = (REAL)pt[i].X;
ptF[i].Y = (REAL)pt[i].Y;
return GdipCreateMatrix3(&rectF, &ptF, matrix); }
return GdipCreateMatrix3(&rectF, ptF, matrix);
} }
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone) GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix *matrix, GpMatrix **clone)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment