[PATCH] windowscodecs/tests: Fix a test failure [newwtb and other]
Detlef Riekenberg
wine.dev at web.de
Fri Jul 5 05:08:08 CDT 2013
Newer windowscodecs versions succeed IWICBitmapDecoder_CopyPalette,
but i have no idea about an app, that depends on this result change.
--
By by ... Detlef
---
dlls/windowscodecs/tests/gifformat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/windowscodecs/tests/gifformat.c b/dlls/windowscodecs/tests/gifformat.c
index 9ff1d90..232b6fe 100644
--- a/dlls/windowscodecs/tests/gifformat.c
+++ b/dlls/windowscodecs/tests/gifformat.c
@@ -281,10 +281,10 @@ static void test_local_gif_palette(void)
hr = IWICImagingFactory_CreatePalette(factory, &palette);
ok(hr == S_OK, "CreatePalette error %#x\n", hr);
- /* global palette */
+ /* global palette. This succeed since win7sp1 with platform update / win8 */
hr = IWICBitmapDecoder_CopyPalette(decoder, palette);
- ok(hr == WINCODEC_ERR_FRAMEMISSING,
- "expected WINCODEC_ERR_FRAMEMISSING, got %#x\n", hr);
+ ok((hr == S_OK) || (hr == WINCODEC_ERR_FRAMEMISSING),
+ "expected S_OK or WINCODEC_ERR_FRAMEMISSING, got %#x\n", hr);
/* frame palette */
hr = IWICBitmapDecoder_GetFrame(decoder, 0, &frame);
--
1.7.5.4
More information about the wine-patches
mailing list