Module: wine Branch: stable Commit: ef317b365b5782fca872de030058a12041bcd68d URL: https://source.winehq.org/git/wine.git/?a=commit;h=ef317b365b5782fca872de030...
Author: Louis Lenders xerox.xerox2000x@gmail.com Date: Wed Feb 28 09:34:34 2018 +0300
gdiplus: Fix argument check in GdipLoadImageFromStream().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Vincent Povirk vincent@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 1ac02c2385a68b39438c5a869b0e620b705ece88) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/gdiplus/image.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index c0b54d0..b03630c 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -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;