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) if (converter)
{ {
*ppIDst = (IWICBitmapSource*)converter; res = IWICFormatConverter_QueryInterface(converter, &IID_IWICBitmapSource, (void **)ppIDst);
return S_OK; IWICFormatConverter_Release(converter);
return res;
} }
else else
{ {