gdiplus: Check for NULL image in GdipImageRotateFlip.

This commit is contained in:
Vincent Povirk 2012-06-13 13:39:35 -05:00 committed by Alexandre Julliard
parent 387d1e9790
commit b5ef70c583
1 changed files with 3 additions and 0 deletions

View File

@ -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;