commit | b5ef70c5836b33a9d469c71e20bff516eed45b14 | [log] [tgz] |
---|---|---|
author | Vincent Povirk <vincent@codeweavers.com> | Wed Jun 13 13:39:35 2012 -0500 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Jun 14 19:13:27 2012 +0200 |
tree | 95d2f248c94b5bca047685a4128cd1ba8553b790 | |
parent | 387d1e9790278325757061b95f90059ae5e5c269 [diff] |
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;