Don't pretend that we implement IWICBitmapSource::CopyPalette()

We don't and it's unclear how to do it, so just return
WINCODEC_ERR_PALETTEUNAVAILABLE instead of pretending that we copied the
palette when we didn't.

See #16625.
This commit is contained in:
Vadim Zeitlin 2015-09-29 00:44:08 +02:00
parent 576b0033c0
commit 2a9a42fd23

View File

@ -1375,10 +1375,9 @@ public:
return S_OK;
}
HRESULT STDMETHODCALLTYPE CopyPalette(__RPC__in_opt IWICPalette *palette) wxOVERRIDE
HRESULT STDMETHODCALLTYPE CopyPalette(__RPC__in_opt IWICPalette* WXUNUSED(palette)) wxOVERRIDE
{
palette = NULL;
return S_OK;
return WINCODEC_ERR_PALETTEUNAVAILABLE;
}
HRESULT STDMETHODCALLTYPE CopyPixels(