From 63859e382f499828ef9d96d3d06bc2c3f7e52b17 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 5 Sep 2016 13:57:54 +0200 Subject: [PATCH] msctf: Added IID_ITfThreadFocusSink support to AdviseSink. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/msctf/threadmgr.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c index 528414fcfda..aa838dade92 100644 --- a/dlls/msctf/threadmgr.c +++ b/dlls/msctf/threadmgr.c @@ -615,6 +615,12 @@ static HRESULT WINAPI ThreadMgrSource_AdviseSink(ITfSource *iface, if (IsEqualIID(riid, &IID_ITfThreadMgrEventSink)) return advise_sink(&This->ThreadMgrEventSink, &IID_ITfThreadMgrEventSink, COOKIE_MAGIC_TMSINK, punk, pdwCookie); + if (IsEqualIID(riid, &IID_ITfThreadFocusSink)) + { + WARN("semi-stub for ITfThreadFocusSink: sink won't be used.\n"); + return advise_sink(&This->ThreadMgrEventSink, &IID_ITfThreadMgrEventSink, COOKIE_MAGIC_TMSINK, punk, pdwCookie); + } + FIXME("(%p) Unhandled Sink: %s\n",This,debugstr_guid(riid)); return E_NOTIMPL; }