Fix fopAcM_ct_placement with vtable layouts

This commit is contained in:
PJB3005
2026-02-28 23:02:06 +01:00
parent 1b69152d5a
commit fd140a6beb
+2 -2
View File
@@ -19,9 +19,9 @@
// we'll just save & restore that data.
#define fopAcM_ct_placement(ptr, ClassName) \
fopAc_ac_c copy; \
memcpy(&copy, ptr, sizeof(fopAc_ac_c)); \
memcpy(&copy, &(ptr)->base, sizeof(fopAc_ac_c)); \
new (ptr) ClassName() ; \
memcpy(ptr, &copy, sizeof(fopAc_ac_c));
memcpy(&(ptr)->base, &copy, sizeof(fopAc_ac_c));
#else
#define fopAcM_ct_placement(ptr, ClassName) new (ptr) ClassName()
#endif