Aric Stewart : msctf: Release focused DocumentMgr on Deactivate and make sure to do a OnSetFocus Sink .
Alexandre Julliard
julliard at winehq.org
Tue Apr 14 16:00:03 CDT 2009
Module: wine
Branch: master
Commit: af860c1a85e4e6105ea992c338bdae753427d2d4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=af860c1a85e4e6105ea992c338bdae753427d2d4
Author: Aric Stewart <aric at codeweavers.com>
Date: Fri Apr 10 11:26:51 2009 -0500
msctf: Release focused DocumentMgr on Deactivate and make sure to do a OnSetFocus Sink.
---
dlls/msctf/threadmgr.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c
index 3912b29..a73beee 100644
--- a/dlls/msctf/threadmgr.c
+++ b/dlls/msctf/threadmgr.c
@@ -196,6 +196,14 @@ static HRESULT WINAPI ThreadMgr_fnDeactivate( ITfThreadMgr* iface)
{
ThreadMgr *This = (ThreadMgr *)iface;
FIXME("STUB:(%p)\n",This);
+
+ if (This->focus)
+ {
+ ITfThreadMgrEventSink_OnSetFocus((ITfThreadMgrEventSink*)&This->ThreadMgrEventSinkVtbl, 0, This->focus);
+ ITfDocumentMgr_Release(This->focus);
+ This->focus = 0;
+ }
+
return E_NOTIMPL;
}
More information about the wine-cvs
mailing list