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

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


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

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
dynamically generated byte code.  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    |  591 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 593 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/20081111/d552c69b/attachment-0001.txt 


More information about the wine-patches mailing list