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:
parent
14d782d18a
commit
14adcc694d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue