wordpad: Clean up IRichEditOleCallback implementation.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-02-13 14:16:07 +03:00 committed by Alexandre Julliard
parent d71672eb4c
commit e492a0d68b

View file

@ -31,7 +31,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(wordpad); WINE_DEFAULT_DEBUG_CHANNEL(wordpad);
struct IRichEditOleCallbackImpl { struct IRichEditOleCallbackImpl {
const IRichEditOleCallbackVtbl *vtbl; IRichEditOleCallback IRichEditOleCallback_iface;
IStorage *stg; IStorage *stg;
int item_num; int item_num;
}; };
@ -196,7 +196,7 @@ struct IRichEditOleCallbackVtbl olecallbackVtbl = {
}; };
struct IRichEditOleCallbackImpl olecallback = { struct IRichEditOleCallbackImpl olecallback = {
&olecallbackVtbl, NULL, 0 { &olecallbackVtbl }, NULL, 0
}; };
HRESULT setup_richedit_olecallback(HWND hEditorWnd) HRESULT setup_richedit_olecallback(HWND hEditorWnd)
@ -205,6 +205,6 @@ HRESULT setup_richedit_olecallback(HWND hEditorWnd)
STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_DELETEONRELEASE, STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_DELETEONRELEASE,
0, &olecallback.stg); 0, &olecallback.stg);
SendMessageW(hEditorWnd, EM_SETOLECALLBACK, 0, (LPARAM)&olecallback); SendMessageW(hEditorWnd, EM_SETOLECALLBACK, 0, (LPARAM)&olecallback.IRichEditOleCallback_iface);
return hr; return hr;
} }