richedit: Added OleInitialize for clipboard operations.

This commit is contained in:
Dylan Smith 2008-07-30 10:09:14 -04:00 committed by Alexandre Julliard
parent 8d77c375b2
commit edb6304379
1 changed files with 3 additions and 0 deletions

View File

@ -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);