msctf: Release focused DocumentMgr on Deactivate and make sure to do a OnSetFocus Sink.
This commit is contained in:
parent
01a00b53fb
commit
af860c1a85
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue