Piotr Caban piotr@codeweavers.com wrote:
- hr = IWICBitmapFrameDecode_QueryInterface(frame, &IID_IWICBitmapSource, (void**)&bmp_source);
- if(FAILED(hr))
return hr;
- hr = IWICBitmapSource_GetSize(bmp_source, width, height);
- IWICBitmapSource_Release(bmp_source);
What's wrong with calling appropriate IWICBitmapFrameDecode method directly?