diff --git a/dlls/msctf/msctf.c b/dlls/msctf/msctf.c index 868721cfca4..78b2bc347ab 100644 --- a/dlls/msctf/msctf.c +++ b/dlls/msctf/msctf.c @@ -210,3 +210,17 @@ HRESULT WINAPI TF_CreateThreadMgr(ITfThreadMgr **pptim) TRACE("\n"); return ThreadMgr_Constructor(NULL,(IUnknown**)pptim); } + +/*********************************************************************** + * TF_GetThreadMgr (MSCTF.@) + */ +HRESULT WINAPI TF_GetThreadMgr(ITfThreadMgr **pptim) +{ + TRACE("\n"); + *pptim = (ITfThreadMgr*)TlsGetValue(tlsIndex); + + if (*pptim) + ITfThreadMgr_AddRef(*pptim); + + return S_OK; +} diff --git a/dlls/msctf/msctf.spec b/dlls/msctf/msctf.spec index c5b9db5689a..faa90194550 100644 --- a/dlls/msctf/msctf.spec +++ b/dlls/msctf/msctf.spec @@ -22,7 +22,7 @@ @ stub TF_GetMlngHKL @ stub TF_GetMlngIconIndex @ stub TF_GetThreadFlags -@ stub TF_GetThreadMgr +@ stdcall TF_GetThreadMgr(ptr) @ stub TF_InatExtractIcon @ stub TF_InitMlngInfo @ stub TF_InitSystem