From 14adcc694d857d00c5aa2bdc551a2a122c351c4e Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sun, 12 Jan 2020 23:28:58 +0000 Subject: [PATCH] gdiplus: Check status as well before using bitmap. Signed-off-by: Alistair Leslie-Hughes Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- dlls/gdiplus/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 1966401507c..354801348e0 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -3683,7 +3683,7 @@ static GpStatus decode_frame_wic(IWICBitmapDecoder *decoder, BOOL force_conversi IWICBitmapSource_Release(source); } - if (SUCCEEDED(hr)) { + if (SUCCEEDED(hr) && status == Ok) { bitmap->metadata_reader = NULL; if (metadata_reader)