gdiplus: Check for NULL image in GdipImageRotateFlip.
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 @@
 
     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;