Nikolay Sivov : gdiplus: Check arguments in GdipPathIterNextSubpath.
Alexandre Julliard
julliard at winehq.org
Mon Jul 7 09:19:25 CDT 2008
Module: wine
Branch: master
Commit: 142907c0d28e95ccd7d428d4246567e701017dca
URL: http://source.winehq.org/git/wine.git/?a=commit;h=142907c0d28e95ccd7d428d4246567e701017dca
Author: Nikolay Sivov <bunglehead at 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;
More information about the wine-cvs
mailing list