Module: wine Branch: master Commit: 56f37637b8dd5a9a8096c2711cd1d680c12d95d8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=56f37637b8dd5a9a8096c2711c...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Mon Sep 24 13:22:42 2012 +0900
windowscodecs: Return WINCODEC_ERR_FRAMEMISSING if there is no global GIF palette.
---
dlls/windowscodecs/gifformat.c | 2 +- dlls/windowscodecs/tests/gifformat.c | 1 - 2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/gifformat.c b/dlls/windowscodecs/gifformat.c index 81bde20..c378348 100644 --- a/dlls/windowscodecs/gifformat.c +++ b/dlls/windowscodecs/gifformat.c @@ -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, diff --git a/dlls/windowscodecs/tests/gifformat.c b/dlls/windowscodecs/tests/gifformat.c index 4c78ebb..8788696 100644 --- a/dlls/windowscodecs/tests/gifformat.c +++ b/dlls/windowscodecs/tests/gifformat.c @@ -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);