Maarten Lankhorst : riched20: Make CreateTextServices use ITextHost.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 30 12:44:58 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 7b6f85474ec56018f76a4aac2b993f01c157dbee
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7b6f85474ec56018f76a4aac2b993f01c157dbee

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Mon Jan 30 18:16:05 2006 +0100

riched20: Make CreateTextServices use ITextHost.

---

 dlls/riched20/editor.c |    8 ++++----
 include/textserv.h     |    4 ----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 01a55c1..135fe8e 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -228,7 +228,8 @@
 #include "winreg.h"
 #define NO_SHLWAPI_STREAM 
 #include "shlwapi.h"
-
+#include "imm.h"
+#include "textserv.h"
 #include "rtf.h"
  
 WINE_DEFAULT_DEBUG_CHANNEL(richedit);
@@ -2199,12 +2200,11 @@ void ME_RegisterEditorClass(HINSTANCE hI
   bResult = RegisterClassA(&wcA);  
   assert(bResult);
 }
+
 /******************************************************************
  *        CreateTextServices (RICHED20.4)
- *
- * FIXME should be ITextHost instead of void*
  */
-HRESULT WINAPI CreateTextServices(IUnknown *punkOuter, void *pITextHost,
+HRESULT WINAPI CreateTextServices(IUnknown *punkOuter, ITextHost *pITextHost,
     IUnknown **ppUnk)
 {
   FIXME("stub\n");
diff --git a/include/textserv.h b/include/textserv.h
index eb3b8b4..ffd9581 100644
--- a/include/textserv.h
+++ b/include/textserv.h
@@ -30,8 +30,6 @@ DEFINE_GUID(IID_ITextHost2,   0xc5bdd8d0
 /*****************************************************************************
  * ITextServices interface
  */
-typedef struct ITextServices ITextServices;
-
 #define INTERFACE ITextServices
 DECLARE_INTERFACE_(ITextServices,IUnknown)
 {
@@ -217,8 +215,6 @@ enum TXTVIEW {
 #define TXTBIT_CLIENTRECTCHANGE 0x100000
 #define TXTBIT_USECURRENTBKG    0x200000
 
-typedef struct ITextHost ITextHost;
-
 /*****************************************************************************
  * ITextHost interface
  */




More information about the wine-cvs mailing list