gdiplus/metafile: Support serialized brushes in EmfPlusFillRects.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-10-16 10:12:25 +03:00 committed by Alexandre Julliard
parent 6cde9952f2
commit 57ca6b90bb
1 changed files with 6 additions and 2 deletions

View File

@ -1852,8 +1852,12 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
}
else
{
FIXME("brush deserialization not implemented\n");
return NotImplemented;
if (record->BrushID >= EmfPlusObjectTableSize ||
real_metafile->objtable[record->BrushID].type != ObjectTypeBrush)
return InvalidParameter;
brush = real_metafile->objtable[record->BrushID].u.brush;
stat = Ok;
}
if (stat == Ok)