rfc: _thiscall and msvcrt
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sat May 24 16:57:58 CDT 2003
>>>>> "Ann&Jason" == Ann and Jason Edmeades <us at the-edmeades.demon.co.uk> writes:
Ann&Jason> OK, i'll take a look at adding __reg stubs if this is the
Ann&Jason> preferred method.
>> don't forget also that register functions return their result in
context-> Eax...
Ann&Jason> so should for example: exception *
Ann&Jason> MSVCRT_exception_opequals(const exception * rhs, CONTEXT86*
Ann&Jason> context) { : return _this; }
Ann&Jason> Be void MSVCRT_exception_opequals(const exception * rhs,
Ann&Jason> CONTEXT86* context) { :
context-> Eax = (DWORD)_this;
Ann&Jason> } ?
Ann&Jason> I assume the caller will look in the context structure passed
Ann&Jason> in for the return val?
On return the context structure is unpacked and the context-> Eax value is
put in EAX. EAX is where the program expects it's rerurn value.
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel
mailing list