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