Commit 3a3ca55f authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Return OutOfMemory when creating a path gradient from a NULL path.

parent ea3e26e3
......@@ -647,9 +647,12 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
TRACE("(%p, %p)\n", path, grad);
if(!path || !grad)
if(!grad)
return InvalidParameter;
if (!path)
return OutOfMemory;
stat = GdipClonePath((GpPath*)path, &new_path);
if (stat == Ok)
......
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