gdiplus/metafile: Validate data size when playing back EmfPlusClear.
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:
parent
9787af34b1
commit
b203b76190
|
@ -1823,6 +1823,9 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
|
|||
{
|
||||
EmfPlusClear *record = (EmfPlusClear*)header;
|
||||
|
||||
if (dataSize != sizeof(record->Color))
|
||||
return InvalidParameter;
|
||||
|
||||
return GdipGraphicsClear(metafile->playback_graphics, record->Color);
|
||||
}
|
||||
case EmfPlusRecordTypeFillRects:
|
||||
|
|
Loading…
Reference in New Issue