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.