windowscodecs: Return WINCODEC_ERR_FRAMEMISSING if there is no global GIF palette.
This commit is contained in:
parent
51242a3f18
commit
56f37637b8
|
@ -1169,7 +1169,7 @@ static HRESULT WINAPI GifDecoder_CopyPalette(IWICBitmapDecoder *iface,
|
|||
IWICPalette *pIPalette)
|
||||
{
|
||||
TRACE("(%p,%p)\n", iface, pIPalette);
|
||||
return WINCODEC_ERR_PALETTEUNAVAILABLE;
|
||||
return WINCODEC_ERR_FRAMEMISSING;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI GifDecoder_GetMetadataQueryReader(IWICBitmapDecoder *iface,
|
||||
|
|
|
@ -95,7 +95,6 @@ static void test_local_gif_palette(void)
|
|||
|
||||
/* global palette */
|
||||
hr = IWICBitmapDecoder_CopyPalette(decoder, palette);
|
||||
todo_wine
|
||||
ok(hr == WINCODEC_ERR_FRAMEMISSING,
|
||||
"expected WINCODEC_ERR_FRAMEMISSING, got %#x\n", hr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue