Module: wine Branch: master Commit: 142907c0d28e95ccd7d428d4246567e701017dca URL: http://source.winehq.org/git/wine.git/?a=commit;h=142907c0d28e95ccd7d428d424...
Author: Nikolay Sivov bunglehead@gmail.com Date: Sat Jul 5 13:02:58 2008 +0400
gdiplus: Check arguments in GdipPathIterNextSubpath.
---
dlls/gdiplus/pathiterator.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/pathiterator.c b/dlls/gdiplus/pathiterator.c index bca9df0..026665a 100644 --- a/dlls/gdiplus/pathiterator.c +++ b/dlls/gdiplus/pathiterator.c @@ -151,7 +151,7 @@ GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator* iterator, { INT i, count;
- if(!iterator) + if(!iterator || !startIndex || !endIndex || !isClosed || !resultCount) return InvalidParameter;
count = iterator->pathdata.Count;