Commit 6395af1a authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

windowscodecs: GetThumbnail should be supported for ICO frames.

parent b671f257
...@@ -200,8 +200,8 @@ static HRESULT WINAPI IcoFrameDecode_GetColorContexts(IWICBitmapFrameDecode *ifa ...@@ -200,8 +200,8 @@ static HRESULT WINAPI IcoFrameDecode_GetColorContexts(IWICBitmapFrameDecode *ifa
static HRESULT WINAPI IcoFrameDecode_GetThumbnail(IWICBitmapFrameDecode *iface, static HRESULT WINAPI IcoFrameDecode_GetThumbnail(IWICBitmapFrameDecode *iface,
IWICBitmapSource **ppIThumbnail) IWICBitmapSource **ppIThumbnail)
{ {
TRACE("(%p,%p)\n", iface, ppIThumbnail); FIXME("(%p,%p)\n", iface, ppIThumbnail);
return WINCODEC_ERR_CODECNOTHUMBNAIL; return E_NOTIMPL;
} }
static const IWICBitmapFrameDecodeVtbl IcoFrameDecode_Vtbl = { static const IWICBitmapFrameDecodeVtbl IcoFrameDecode_Vtbl = {
......
...@@ -134,9 +134,16 @@ static void test_bad_icondirentry_size(void) ...@@ -134,9 +134,16 @@ static void test_bad_icondirentry_size(void)
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
UINT width = 0, height = 0; UINT width = 0, height = 0;
IWICBitmapSource *thumbnail = NULL;
hr = IWICBitmapFrameDecode_GetSize(framedecode, &width, &height); hr = IWICBitmapFrameDecode_GetSize(framedecode, &width, &height);
ok(hr == S_OK, "GetFrameSize failed, hr=%x\n", hr); ok(hr == S_OK, "GetFrameSize failed, hr=%x\n", hr);
ok(width == 16 && height == 16, "framesize=%ux%u\n", width, height); ok(width == 16 && height == 16, "framesize=%ux%u\n", width, height);
hr = IWICBitmapFrameDecode_GetThumbnail(framedecode, &thumbnail);
todo_wine ok(hr == S_OK, "GetThumbnail failed, hr=%x\n", hr);
if (thumbnail) IWICBitmapSource_Release(thumbnail);
IWICBitmapFrameDecode_Release(framedecode); IWICBitmapFrameDecode_Release(framedecode);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment