gdiplus: Correct EMF record size calculation.

This commit is contained in:
Vincent Povirk 2013-03-12 15:54:41 -05:00 committed by Alexandre Julliard
parent 6214e5b92c
commit a424968482
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile,
if (record) if (record)
{ {
record->iType = recordType; record->iType = recordType;
record->nSize = dataSize; record->nSize = dataSize + 8;
memcpy(record->dParm, data, dataSize); memcpy(record->dParm, data, dataSize);
PlayEnhMetaFileRecord(metafile->playback_dc, metafile->handle_table, PlayEnhMetaFileRecord(metafile->playback_dc, metafile->handle_table,