windowscodecs: Return WINCODEC_ERR_FRAMEMISSING if there is no global GIF palette.

This commit is contained in:
Dmitry Timoshkov 2012-09-24 13:22:42 +09:00 committed by Alexandre Julliard
parent 51242a3f18
commit 56f37637b8
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

@ -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);