Commit 1c41470c authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Check for null pt in GdipCreateMatrix3.

parent b4e20b2e
...@@ -87,7 +87,7 @@ GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect, ...@@ -87,7 +87,7 @@ GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *rect,
{ {
TRACE("(%p, %p, %p)\n", rect, pt, matrix); TRACE("(%p, %p, %p)\n", rect, pt, matrix);
if(!matrix) if(!matrix || !pt)
return InvalidParameter; return InvalidParameter;
*matrix = GdipAlloc(sizeof(GpMatrix)); *matrix = GdipAlloc(sizeof(GpMatrix));
......
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