Commit 36fdc6ab authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

gdiplus: GdipTransformPath should return Ok if matrix = NULL.

parent 7d65065e
......@@ -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,
......
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