windowscodecs: GetThumbnail should be supported for ICO frames.

This commit is contained in:
Hans Leidekker 2012-11-15 14:10:31 +01:00 committed by Alexandre Julliard
parent b671f2573e
commit 6395af1ae7
2 changed files with 9 additions and 2 deletions

View File

@ -200,8 +200,8 @@ static HRESULT WINAPI IcoFrameDecode_GetColorContexts(IWICBitmapFrameDecode *ifa
static HRESULT WINAPI IcoFrameDecode_GetThumbnail(IWICBitmapFrameDecode *iface,
IWICBitmapSource **ppIThumbnail)
{
TRACE("(%p,%p)\n", iface, ppIThumbnail);
return WINCODEC_ERR_CODECNOTHUMBNAIL;
FIXME("(%p,%p)\n", iface, ppIThumbnail);
return E_NOTIMPL;
}
static const IWICBitmapFrameDecodeVtbl IcoFrameDecode_Vtbl = {

View File

@ -134,9 +134,16 @@ static void test_bad_icondirentry_size(void)
if (SUCCEEDED(hr))
{
UINT width = 0, height = 0;
IWICBitmapSource *thumbnail = NULL;
hr = IWICBitmapFrameDecode_GetSize(framedecode, &width, &height);
ok(hr == S_OK, "GetFrameSize failed, hr=%x\n", hr);
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);
}