Dylan Smith : richedit: Fix incorrect GUID values for ITextHost and ITextHost2.

Alexandre Julliard julliard at winehq.org
Tue Jul 5 12:59:06 CDT 2011


Module: wine
Branch: master
Commit: 82da77c0a6903a414591f77621a41e1460f02310
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=82da77c0a6903a414591f77621a41e1460f02310

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Mon Jul  4 00:44:00 2011 -0400

richedit: Fix incorrect GUID values for ITextHost and ITextHost2.

---

 dlls/msftedit/msftedit.spec  |    6 +++---
 dlls/riched20/richole.c      |   10 +++-------
 dlls/riched20/tests/txtsrv.c |    4 ++--
 include/textserv.h           |    5 ++---
 4 files changed, 10 insertions(+), 15 deletions(-)

diff --git a/dlls/msftedit/msftedit.spec b/dlls/msftedit/msftedit.spec
index 0dd878d..5f71886 100644
--- a/dlls/msftedit/msftedit.spec
+++ b/dlls/msftedit/msftedit.spec
@@ -1,9 +1,9 @@
 2 extern IID_IRichEditOle
 3 extern IID_IRichEditOleCallback
 4 stdcall CreateTextServices(ptr ptr ptr) riched20.CreateTextServices
-5 extern IID_ITextServices
-6 extern IID_ITextHost
-7 extern IID_ITextHost2
+5 extern IID_ITextServices riched20.IID_ITextServices
+6 extern IID_ITextHost riched20.IID_ITextHost
+7 extern IID_ITextHost2 riched20.IID_ITextHost2
 8 stdcall REExtendedRegisterClass() riched20.REExtendedRegisterClass
 9 stdcall RichEdit10ANSIWndProc(ptr long long long) riched20.RichEdit10ANSIWndProc
 10 stdcall RichEditANSIWndProc(ptr long long long) riched20.RichEditANSIWndProc
diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index ce6d308..840678d 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -39,14 +39,10 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
 
 /* there is no way to be consistent across different sets of headers - mingw, Wine, Win32 SDK*/
 
-/* FIXME: the next 6 lines should be in textserv.h */
 #include "initguid.h"
-#define TEXTSERV_GUID(name, l, w1, w2, b1, b2) \
-    DEFINE_GUID(name, l, w1, w2, b1, b2, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5)
-
-TEXTSERV_GUID(IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d);
-TEXTSERV_GUID(IID_ITextHost, 0xc5bdd8d0, 0xd26e, 0x11ce, 0xa8, 0x9e);
-TEXTSERV_GUID(IID_ITextHost2, 0xc5bdd8d0, 0xd26e, 0x11ce, 0xa8, 0x9e);
+DEFINE_GUID(IID_ITextServices, 0x8d33f740, 0xcf58, 0x11ce, 0xa8, 0x9d, 0x00, 0xaa, 0x00, 0x6c, 0xad, 0xc5);
+DEFINE_GUID(IID_ITextHost, 0x13e670f4,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
+DEFINE_GUID(IID_ITextHost2, 0x13e670f5,0x1a5a,0x11cf,0xab,0xeb,0x00,0xaa,0x00,0xb6,0x5e,0xa1);
 DEFINE_GUID(IID_ITextDocument, 0x8cc497c0, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
 DEFINE_GUID(IID_ITextRange, 0x8cc497c2, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
 DEFINE_GUID(IID_ITextSelection, 0x8cc497c1, 0xa1df, 0x11ce, 0x80, 0x98, 0x00, 0xaa, 0x00, 0x47, 0xbe, 0x5d);
diff --git a/dlls/riched20/tests/txtsrv.c b/dlls/riched20/tests/txtsrv.c
index efeffc1..a6c53ce 100644
--- a/dlls/riched20/tests/txtsrv.c
+++ b/dlls/riched20/tests/txtsrv.c
@@ -806,9 +806,9 @@ static void test_IIDs(void)
 {
     ok(IsEqualIID(pIID_ITextServices, &expected_iid_itextservices),
        "unexpected value for IID_ITextServices: %s\n", debugstr_guid(pIID_ITextServices));
-    todo_wine ok(IsEqualIID(pIID_ITextHost, &expected_iid_itexthost),
+    ok(IsEqualIID(pIID_ITextHost, &expected_iid_itexthost),
        "unexpected value for IID_ITextHost: %s\n", debugstr_guid(pIID_ITextHost));
-    todo_wine ok(IsEqualIID(pIID_ITextHost2, &expected_iid_itexthost2),
+    ok(IsEqualIID(pIID_ITextHost2, &expected_iid_itexthost2),
        "unexpected value for IID_ITextHost2: %s\n", debugstr_guid(pIID_ITextHost2));
 }
 
diff --git a/include/textserv.h b/include/textserv.h
index 7a0cfbf..0d509a6 100644
--- a/include/textserv.h
+++ b/include/textserv.h
@@ -23,9 +23,8 @@
 extern "C" {
 #endif
 
-DEFINE_GUID(IID_ITextServices,0x8d33f740,0xcf58,0x11ce,0xa8,0x9d,0x00,0xaa,0x00,0x6c,0xad,0xc5);
-DEFINE_GUID(IID_ITextHost,    0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
-DEFINE_GUID(IID_ITextHost2,   0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
+EXTERN_C const IID IID_ITextServices;
+EXTERN_C const IID IID_ITextHost;
 
 /*****************************************************************************
  * ITextServices interface




More information about the wine-cvs mailing list