Commit 18a915ef authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

windowscodecs: Fix IWICBitmapDecoder::CopyPalette for a not initialized case in the GIF decoder.

parent 7eb1f5d6
......@@ -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)
{
......
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