gdiplus: Return OutOfMemory when creating a path gradient from a NULL path.
This commit is contained in:
parent
ea3e26e32d
commit
3a3ca55ffa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue