Commit edb63043 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Added OleInitialize for clipboard operations.

parent 8d77c375
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment