windowscodecs: Fix IWICBitmapDecoder::CopyPalette for a not initialized case in the GIF decoder.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7eb1f5d6ad
commit
18a915ef3c
|
@ -1187,6 +1187,9 @@ static HRESULT WINAPI GifDecoder_CopyPalette(IWICBitmapDecoder *iface, IWICPalet
|
|||
|
||||
TRACE("(%p,%p)\n", iface, palette);
|
||||
|
||||
if (!This->gif)
|
||||
return WINCODEC_ERR_WRONGSTATE;
|
||||
|
||||
cm = This->gif->SColorMap;
|
||||
if (cm)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue