[2/8] windowscodecs: Return WINCODEC_ERR_FRAMEMISSING if there is no global GIF palette. Resend.

Dmitry Timoshkov dmitry at baikal.ru
Sun Sep 23 23:22:42 CDT 2012


---
 dlls/windowscodecs/gifformat.c       | 2 +-
 dlls/windowscodecs/tests/gifformat.c | 1 -
 2 files changed, 1 insertion(+), 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);
 
-- 
1.7.12.1




More information about the wine-patches mailing list