From d76d00ea7eb32bffdcf41f977fe937af63ce98aa Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Tue, 11 Aug 2009 09:55:23 -0500 Subject: [PATCH] gdiplus: Remove an unnecessary picture reference in GdipSaveImageToFile. --- dlls/gdiplus/image.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index f06eb029861..2ed64f828d9 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1290,9 +1290,6 @@ GpStatus WINGDIPAPI GdipSaveImageToFile(GpImage *image, GDIPCONST WCHAR* filenam if (!image || !filename|| !clsidEncoder) return InvalidParameter; - if (!(image->picture)) - return InvalidParameter; - stat = GdipCreateStreamOnFile(filename, GENERIC_WRITE, &stream); if (stat != Ok) return GenericError;