gdiplus: Remove an unnecessary picture reference in GdipSaveImageToFile.
This commit is contained in:
parent
59cf9c449e
commit
d76d00ea7e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue