Dylan Smith : richedit: Added OleInitialize for clipboard operations.
Alexandre Julliard
julliard at winehq.org
Thu Jul 31 07:17:48 CDT 2008
Module: wine
Branch: master
Commit: edb63043798019d8632b46af540cb435122e5d52
URL: http://source.winehq.org/git/wine.git/?a=commit;h=edb63043798019d8632b46af540cb435122e5d52
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Wed Jul 30 10:09:14 2008 -0400
richedit: Added OleInitialize for clipboard operations.
---
dlls/riched20/editor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index c747c31..db9728c 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1814,6 +1814,8 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
ed->vert_si.nPage = 0;
ed->vert_si.nPos = 0;
+ OleInitialize(NULL);
+
return ed;
}
@@ -1882,6 +1884,7 @@ void ME_DestroyEditor(ME_TextEditor *editor)
DeleteObject(editor->hbrBackground);
if(editor->lpOleCallback)
IUnknown_Release(editor->lpOleCallback);
+ OleUninitialize();
FREE_OBJ(editor->pBuffer);
FREE_OBJ(editor->pCursors);
More information about the wine-cvs
mailing list