[1/2] richedit: Created initial tests for windowless richedit controls. (try 3)

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

(Make sure the generated code executable by using VirtualProtect)

The initial tests added simply call CreateTextServices, and query for
the ITextServices interface, then cleans up.

Since CreateTextServices needs an implementation of ITextHost to be
given, this patch needed a stub implementation.  This required wrappers
for converting thiscall to stdcall which are now implementing by
adapting a byte code wrapper template.  Although byte code isn't portable
across processors, this is only needed for x86 platforms so it is only
meant to be compiler independent.

In order to investigate what is happening in the tests, it is helpful
to trace the calls to ITextHost methods by the richedit controls.  I
realized it would be too verbose to trace all these calls by default,
so I wrapped them all with a check for winedebug > 1, since normally
winedebug is 0 or 1.
 dlls/riched20/tests/Makefile.in |    3 +-
 dlls/riched20/tests/txtsrv.c    |  594 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 596 insertions(+), 1 deletions(-)
 create mode 100644 dlls/riched20/tests/txtsrv.c
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Created-initial-tests-for-windowless-ri.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081108/216bb8af/attachment-0001.txt 

More information about the wine-patches mailing list