windowscodecs: Avoid casting IWICFormatConverter to IWICBitmapSource.
This commit is contained in:
parent
33a1f892b8
commit
a9d0f8976c
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue