gdiplus: GdipTransformPath should return Ok if matrix = NULL.

Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Louis Lenders 2016-03-22 21:07:05 +01:00 committed by Alexandre Julliard
parent 7d65065ecb
commit 36fdc6abf1
1 changed files with 4 additions and 6 deletions

View File

@ -1216,11 +1216,9 @@ GpStatus WINGDIPAPI GdipFlattenPath(GpPath *path, GpMatrix* matrix, REAL flatnes
if(path->pathdata.Count == 0)
return Ok;
if(matrix){
stat = GdipTransformPath(path, matrix);
if (stat != Ok)
return stat;
}
stat = GdipTransformPath(path, matrix);
if(stat != Ok)
return stat;
pt = path->pathdata.Points[0];
if(!init_path_list(&list, pt.X, pt.Y))
@ -1677,7 +1675,7 @@ GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix)
if(!path)
return InvalidParameter;
if(path->pathdata.Count == 0)
if(path->pathdata.Count == 0 || !matrix)
return Ok;
return GdipTransformMatrixPoints(matrix, path->pathdata.Points,