Commit 8b9cff6e authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

gdiplus: Return an error retrieving the palette for a metafile.

parent ed2d0df4
......@@ -2285,6 +2285,12 @@ GpStatus WINGDIPAPI GdipGetImagePaletteSize(GpImage *image, INT *size)
if(!image || !size)
return InvalidParameter;
if (image->type == ImageTypeMetafile)
{
*size = 0;
return GenericError;
}
if (!image->palette || image->palette->Count == 0)
*size = sizeof(ColorPalette);
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