Louis Lenders : gdiplus: GdipTransformPath should return Ok if matrix = NULL.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 25 10:00:38 CDT 2016
Module: wine
Branch: master
Commit: 36fdc6abf19bc53dfb33532464f3613f95444239
URL: http://source.winehq.org/git/wine.git/?a=commit;h=36fdc6abf19bc53dfb33532464f3613f95444239
Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Tue Mar 22 21:07:05 2016 +0100
gdiplus: GdipTransformPath should return Ok if matrix = NULL.
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/graphicspath.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 58e99a2..963ee1c 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -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,
More information about the wine-cvs
mailing list