gdiplus: Make get_palette() usable for generating predefined palettes.

This commit is contained in:
Dmitry Timoshkov 2012-07-18 17:28:20 +09:00 committed by Alexandre Julliard
parent f165e2725f
commit 0b40df2990
1 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,8 @@ static ColorPalette *get_palette(IWICBitmapFrameDecode *frame, WICBitmapPaletteT
hr = IWICImagingFactory_CreatePalette(factory, &wic_palette);
if (hr == S_OK)
{
hr = WINCODEC_ERR_PALETTEUNAVAILABLE;
if (frame)
hr = IWICBitmapFrameDecode_CopyPalette(frame, wic_palette);
if (hr != S_OK)
{