Commit a9d0f897 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

windowscodecs: Avoid casting IWICFormatConverter to IWICBitmapSource.

parent 33a1f892
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment