From e492a0d68b297481f9958f451050522d20339c39 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 13 Feb 2017 14:16:07 +0300 Subject: [PATCH] wordpad: Clean up IRichEditOleCallback implementation. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- programs/wordpad/olecallback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/wordpad/olecallback.c b/programs/wordpad/olecallback.c index 8b279ada89d..dcfef5898e6 100644 --- a/programs/wordpad/olecallback.c +++ b/programs/wordpad/olecallback.c @@ -31,7 +31,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(wordpad); struct IRichEditOleCallbackImpl { - const IRichEditOleCallbackVtbl *vtbl; + IRichEditOleCallback IRichEditOleCallback_iface; IStorage *stg; int item_num; }; @@ -196,7 +196,7 @@ struct IRichEditOleCallbackVtbl olecallbackVtbl = { }; struct IRichEditOleCallbackImpl olecallback = { - &olecallbackVtbl, NULL, 0 + { &olecallbackVtbl }, NULL, 0 }; HRESULT setup_richedit_olecallback(HWND hEditorWnd) @@ -205,6 +205,6 @@ HRESULT setup_richedit_olecallback(HWND hEditorWnd) STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_DELETEONRELEASE, 0, &olecallback.stg); - SendMessageW(hEditorWnd, EM_SETOLECALLBACK, 0, (LPARAM)&olecallback); + SendMessageW(hEditorWnd, EM_SETOLECALLBACK, 0, (LPARAM)&olecallback.IRichEditOleCallback_iface); return hr; }