msctf: Allow unadvising ITfThreadFocusSink.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-02-02 13:27:01 +01:00 committed by Alexandre Julliard
parent cdf3872f59
commit 04b97c2eaa
1 changed files with 1 additions and 1 deletions

View File

@ -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);