[Bug 40304] EveHQ2 crashes with builtin gdiplus
wine-bugs at winehq.org
wine-bugs at winehq.org
Mon Mar 14 12:49:17 CDT 2016
https://bugs.winehq.org/show_bug.cgi?id=40304
Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #53944|1 |0
is patch| |
Attachment #53944|0 |1
is obsolete| |
--- Comment #3 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> ---
Comment on attachment 53944
--> https://bugs.winehq.org/attachment.cgi?id=53944
possible fix and test
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 58e99a2..84c13a7 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -1677,7 +1677,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,
diff --git a/dlls/gdiplus/tests/graphicspath.c
b/dlls/gdiplus/tests/graphicspath.c
index 24619e5..0481fef 100644
--- a/dlls/gdiplus/tests/graphicspath.c
+++ b/dlls/gdiplus/tests/graphicspath.c
@@ -1012,6 +1012,9 @@ static void test_flatten(void)
status = GdipFlattenPath(path, NULL, 1.0);
expect(Ok, status);
+ status = GdipTransformPath(path, 0);
+ expect(Ok, status);
+
status = GdipAddPathEllipse(path, 0.0, 0.0, 100.0, 50.0);
expect(Ok, status);
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list