windowscodecs: Avoid casting IWICFormatConverter to IWICBitmapSource.

This commit is contained in:
Dmitry Timoshkov 2012-07-16 14:53:44 +09:00 committed by Alexandre Julliard
parent 33a1f892b8
commit a9d0f8976c
1 changed files with 3 additions and 2 deletions

View File

@ -2181,8 +2181,9 @@ HRESULT WINAPI WICConvertBitmapSource(REFWICPixelFormatGUID dstFormat, IWICBitma
if (converter)
{
*ppIDst = (IWICBitmapSource*)converter;
return S_OK;
res = IWICFormatConverter_QueryInterface(converter, &IID_IWICBitmapSource, (void **)ppIDst);
IWICFormatConverter_Release(converter);
return res;
}
else
{