Commit ea3e26e3 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Return OutOfMemory when creating a path gradient with NULL points.

parent 25ba5c8b
......@@ -578,10 +578,10 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
TRACE("(%p, %d, %d, %p)\n", points, count, wrap, grad);
if(!points || !grad)
if(!grad)
return InvalidParameter;
if(count <= 0)
if(!points || count <= 0)
return OutOfMemory;
stat = GdipCreatePath(FillModeAlternate, &path);
......@@ -611,10 +611,10 @@ GpStatus WINGDIPAPI GdipCreatePathGradientI(GDIPCONST GpPoint* points,
TRACE("(%p, %d, %d, %p)\n", points, count, wrap, grad);
if(!points || !grad)
if(!grad)
return InvalidParameter;
if(count <= 0)
if(!points || count <= 0)
return OutOfMemory;
stat = GdipCreatePath(FillModeAlternate, &path);
......
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