Jacek Caban : msctf: Allow unadvising ITfThreadFocusSink.
Alexandre Julliard
julliard at winehq.org
Thu Feb 2 15:49:26 CST 2017
Module: wine
Branch: master
Commit: 04b97c2eaa73d499ed011f77a6754bd66fd8a9d6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=04b97c2eaa73d499ed011f77a6754bd66fd8a9d6
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Feb 2 13:27:01 2017 +0100
msctf: Allow unadvising ITfThreadFocusSink.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 2c4100b..8ca12ac 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);
More information about the wine-cvs
mailing list