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

Dylan Smith dylan.ah.smith at gmail.com
Fri Nov 7 23:28:44 CST 2008


(Ensured compiler independence by modifying byte code templates)

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    |  593 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 595 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/a78dc129/attachment-0001.txt 


More information about the wine-patches mailing list