6 Dec
2022
6 Dec
'22
11:09 a.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/tests/cpp.c:
casted = p__RTDynamicCast(&child_class_sig0, 0, NULL, simple_class_sig0_rtti.type_info, 0); if(casted) { - ok (casted == (char*)&child_class_sig0+8, "failed cast to simple_class (%p %p)\n", casted, &child_class_sig0); + ok (casted == (char*)((uintptr_t)&child_class_sig0+8), "failed cast to simple_class (%p %p)\n", casted, &child_class_sig0); I think it's better to allocate the memory as in real class instance. Does something like [0001-tmp.txt](/uploads/eec7600b8daf35363dbd97b88a1e79c1/0001-tmp.txt) help?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1666#note_18809