[3/3] gdiplus: Check arguments in GdipPathIterNextSubpath

Nikolay Sivov bunglehead at gmail.com
Sat Jul 5 04:02:58 CDT 2008


Changelog:
    - 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 a33853d..cf4388d 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;
-- 
1.4.4.4






More information about the wine-patches mailing list