gdiplus: Check status as well before using bitmap.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-01-12 23:28:58 +00:00 committed by Alexandre Julliard
parent 14d782d18a
commit 14adcc694d
1 changed files with 1 additions and 1 deletions

View File

@ -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)