mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
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:
parent
d71672eb4c
commit
e492a0d68b
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue