riched20: Make vtables const.

Dmitry Timoshkov dmitry at codeweavers.com
Mon Sep 7 07:13:52 CDT 2009


---
 dlls/riched20/editstr.h |    2 +-
 dlls/riched20/txthost.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/riched20/editstr.h b/dlls/riched20/editstr.h
index c3f59b9..6258a63 100644
--- a/dlls/riched20/editstr.h
+++ b/dlls/riched20/editstr.h
@@ -51,7 +51,7 @@
 #include "wine/debug.h"
 
 #ifdef __i386__
-extern struct ITextHostVtbl itextHostStdcallVtbl;
+extern const struct ITextHostVtbl itextHostStdcallVtbl;
 #endif /* __i386__ */
 
 typedef struct tagME_String
diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c
index ddf3d76..0ccb177 100644
--- a/dlls/riched20/txthost.c
+++ b/dlls/riched20/txthost.c
@@ -42,7 +42,7 @@ typedef struct ITextHostImpl {
     BOOL bEmulateVersion10;
 } ITextHostImpl;
 
-static ITextHostVtbl textHostVtbl;
+static const ITextHostVtbl textHostVtbl;
 
 ITextHost *ME_CreateTextHost(HWND hwnd, BOOL bEmulateVersion10)
 {
@@ -635,7 +635,7 @@ DEFINE_STDCALL_WRAPPER(39,ITextHostImpl_TxImmGetContext,4)
 DEFINE_STDCALL_WRAPPER(40,ITextHostImpl_TxImmReleaseContext,8)
 DEFINE_STDCALL_WRAPPER(41,ITextHostImpl_TxGetSelectionBarWidth,8)
 
-ITextHostVtbl itextHostStdcallVtbl = {
+const ITextHostVtbl itextHostStdcallVtbl = {
     NULL,
     NULL,
     NULL,
@@ -682,7 +682,7 @@ ITextHostVtbl itextHostStdcallVtbl = {
 
 #endif /* __i386__ */
 
-static ITextHostVtbl textHostVtbl = {
+static const ITextHostVtbl textHostVtbl = {
     ITextHostImpl_QueryInterface,
     ITextHostImpl_AddRef,
     ITextHostImpl_Release,
-- 
1.6.4.2




More information about the wine-patches mailing list