Commit 1ac02c23 authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

gdiplus: Fix argument check in GdipLoadImageFromStream().

parent 498bf049
......@@ -4314,6 +4314,11 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream *stream, GpImage **image)
HRESULT hr;
const struct image_codec *codec=NULL;
TRACE("%p %p\n", stream, image);
if (!stream || !image)
return InvalidParameter;
/* choose an appropriate image decoder */
stat = get_decoder_info(stream, &codec);
if (stat != Ok) return stat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment