From 04b97c2eaa73d499ed011f77a6754bd66fd8a9d6 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 2 Feb 2017 13:27:01 +0100 Subject: [PATCH] msctf: Allow unadvising ITfThreadFocusSink. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/msctf/threadmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msctf/threadmgr.c b/dlls/msctf/threadmgr.c index 2c4100b3801..8ca12ac0788 100644 --- a/dlls/msctf/threadmgr.c +++ b/dlls/msctf/threadmgr.c @@ -631,7 +631,7 @@ static HRESULT WINAPI ThreadMgrSource_UnadviseSink(ITfSource *iface, DWORD pdwCo TRACE("(%p) %x\n",This,pdwCookie); - if (get_Cookie_magic(pdwCookie)!=COOKIE_MAGIC_TMSINK) + if (get_Cookie_magic(pdwCookie) != COOKIE_MAGIC_TMSINK && get_Cookie_magic(pdwCookie) != COOKIE_MAGIC_THREADFOCUSSINK) return E_INVALIDARG; return unadvise_sink(pdwCookie);