From bae615350ba50ca99353e28fda5db029fd362b3c Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sat, 19 Jun 2010 16:44:38 -0500 Subject: [PATCH 1/5] gdiplus: Check for null pt in GdipCreateMatrix3. This fixes a crash in the mono tests. --- dlls/gdiplus/matrix.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/matrix.c b/dlls/gdiplus/matrix.c index 2176da6..a6724d3 100644 --- a/dlls/gdiplus/matrix.c +++ b/dlls/gdiplus/matrix.c @@ -87,7 +87,7 @@ GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect, { TRACE("(%p, %p, %p)\n", rect, pt, matrix); - if(!matrix) + if(!matrix || !pt) return InvalidParameter; *matrix = GdipAlloc(sizeof(GpMatrix)); -- 1.6.3.3