4 Jun
2024
4 Jun
'24
6:57 p.m.
Esme Povirk (@madewokherd) commented about dlls/gdiplus/metafile.c:
+ struct list containers; +}data; + +struct enum_metafile_data +{ + EnumerateMetafileProc callback; + struct data *data; + GpMetafile *metafile; +}; + GpStatus WINGDIPAPI GdipPlayMetafileRecord(GDIPCONST GpMetafile *metafile, EmfPlusRecordType recordType, UINT flags, UINT dataSize, GDIPCONST BYTE *data) { GpStatus stat; GpMetafile *real_metafile = (GpMetafile*)metafile; + struct list containers = ((struct data*)data)->containers; The data passed into GdipPlayMetafileRecord is from the EMF file. It's not the callback data from the enumeration call.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/5785#note_72361