diff --git a/dlls/windowscodecs/fliprotate.c b/dlls/windowscodecs/fliprotate.c index 26062cd9dd8..ee2a9c24398 100644 --- a/dlls/windowscodecs/fliprotate.c +++ b/dlls/windowscodecs/fliprotate.c @@ -143,8 +143,13 @@ static HRESULT WINAPI FlipRotator_GetResolution(IWICBitmapFlipRotator *iface, static HRESULT WINAPI FlipRotator_CopyPalette(IWICBitmapFlipRotator *iface, IWICPalette *pIPalette) { - FIXME("(%p,%p): stub\n", iface, pIPalette); - return E_NOTIMPL; + FlipRotator *This = impl_from_IWICBitmapFlipRotator(iface); + TRACE("(%p,%p)\n", iface, pIPalette); + + if (!This->source) + return WINCODEC_ERR_WRONGSTATE; + else + return IWICBitmapSource_CopyPalette(This->source, pIPalette); } static HRESULT WINAPI FlipRotator_CopyPixels(IWICBitmapFlipRotator *iface,