Module: wine Branch: master Commit: 3a3ca55ffa705c0266b27fdc2d89234a83359784 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a3ca55ffa705c0266b27fdc2d...
Author: Vincent Povirk vincent@codeweavers.com Date: Tue Apr 24 10:26:12 2012 -0500
gdiplus: Return OutOfMemory when creating a path gradient from a NULL path.
---
dlls/gdiplus/brush.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 8dfa18d..184c8de 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -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)