[2/2] richedit: Initial testing of ITextServices methods. (try 4)

Dylan Smith dylan.ah.smith at gmail.com
Tue Nov 11 13:08:58 CST 2008


(Used structures for byte code and made executable on VirtualAlloc)

Mostly this patch defines the wrappers and macros that allow the
ITextServices methods to be called, since they use the c++ thiscall
calling convention.

Assembly is used to make the conversion itself, and macros are used to
abstract away these details from the tests.  Byte code is generated at
runtime to avoid problems with different compilers being used, and to
make the code more concise.

The public header files should not have the c object macros for the
methods using the thiscall calling convention, since the native headers
omit them, and they will cause code to crash on x86 platforms.  The
standard QueryInterface, AddRef, and Release methods were left since
they use the stdcall calling convention.
---
 dlls/riched20/tests/txtsrv.c |   92 +++++++++++++++++++++++++++++++++++++++++-
 include/textserv.h           |   19 ---------
 2 files changed, 91 insertions(+), 20 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-richedit-Initial-testing-of-ITextServices-method.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081111/c9d174a5/attachment.txt 


More information about the wine-patches mailing list