Commit 14adcc69 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

gdiplus: Check status as well before using bitmap.

parent 14d782d1
......@@ -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)
......
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