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

Dylan Smith dylan.ah.smith at gmail.com
Sat Nov 8 11:56:06 CST 2008


(Make sure the generated code executable by using VirtualProtect)

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 templates are
modified 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 |   86 +++++++++++++++++++++++++++++++++++++++++-
 include/textserv.h           |   19 ---------
 2 files changed, 85 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/20081108/f9b2bd8e/attachment.txt 


More information about the wine-patches mailing list