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

This commit is contained in:
Vincent Povirk 2012-04-24 10:26:12 -05:00 committed by Alexandre Julliard
parent ea3e26e32d
commit 3a3ca55ffa
1 changed files with 4 additions and 1 deletions

View File

@ -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)