Vincent Povirk : gdiplus: Check for NULL image in GdipImageRotateFlip.

Alexandre Julliard julliard at winehq.org
Thu Jun 14 15:31:31 CDT 2012


Module: wine
Branch: master
Commit: b5ef70c5836b33a9d469c71e20bff516eed45b14
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b5ef70c5836b33a9d469c71e20bff516eed45b14

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed Jun 13 13:39:35 2012 -0500

gdiplus: Check for NULL image in GdipImageRotateFlip.

---

 dlls/gdiplus/image.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index ce04c72..dd4dcea 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -3889,6 +3889,9 @@ GpStatus WINGDIPAPI GdipImageRotateFlip(GpImage *image, RotateFlipType type)
 
     TRACE("(%p, %u)\n", image, type);
 
+    if (!image)
+        return InvalidParameter;
+
     rotate_90 = type&1;
     flip_x = (type&6) == 2 || (type&6) == 4;
     flip_y = (type&3) == 1 || (type&3) == 2;




More information about the wine-cvs mailing list