mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 20:30:42 +00:00
gdiplus: Return an error retrieving the palette for a metafile.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ed2d0df4f7
commit
8b9cff6e70
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue