rfc: _thiscall and msvcrt
pouech-eric at wanadoo.fr
Sat May 24 15:49:56 CDT 2003
> This will not compile, because I have ALSO changed
> MSVCRT_bad_typeid_copy_ctor as it too suffers from the _thiscall issue.
> (Even if I switch the parms around to account for moving the this to the
> last parm).
the simplest (and cleanest) way, may be to let the current functions
untouched, but change the name in the .spec from.
cdecl -register ??0bad_typeid@@QAE at ABV0@@Z(ptr)
and in C file, leave MSVCRT_bad_typeid_copy_ctor as it is and implement
the __reg functions as:
void __reg_MSVCRT_bad_typeid_copy_ctor(const bad_typeid * rhs,
MSVCRT_bad_typeid_copy_ctor((bad_typeid *)context->Ecx, rhs);
that should work...
don't forget also that register functions return their result in
More information about the wine-devel