Module: wine Branch: master Commit: 8d524700d3c9522e496fef907721c2905e7340d2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d524700d3c9522e496fef9077...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Mon Sep 7 21:13:52 2009 +0900
riched20: Make vtables const.
---
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,