Aric Stewart : msctf: Implement ITfInputProcessorProfiles::Unregister.
Module: wine Branch: master Commit: 8bd19cc93fb9fc0d06021174cf08a95137721a69 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8bd19cc93fb9fc0d06021174cf... Author: Aric Stewart <aric(a)codeweavers.com> Date: Fri Feb 20 08:00:34 2009 -0600 msctf: Implement ITfInputProcessorProfiles::Unregister. --- dlls/msctf/inputprocessor.c | 14 ++++++++++++-- dlls/msctf/tests/inputprocessor.c | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/dlls/msctf/inputprocessor.c b/dlls/msctf/inputprocessor.c index ca2bbda..3950a94 100644 --- a/dlls/msctf/inputprocessor.c +++ b/dlls/msctf/inputprocessor.c @@ -152,9 +152,19 @@ static HRESULT WINAPI InputProcessorProfiles_Register( static HRESULT WINAPI InputProcessorProfiles_Unregister( ITfInputProcessorProfiles *iface, REFCLSID rclsid) { + WCHAR buf[39]; + WCHAR fullkey[68]; InputProcessorProfiles *This = (InputProcessorProfiles*)iface; - FIXME("STUB:(%p)\n",This); - return E_NOTIMPL; + + TRACE("(%p) %s\n",This,debugstr_guid(rclsid)); + + StringFromGUID2(rclsid, buf, 39); + sprintfW(fullkey,szwTipfmt,szwSystemTIPKey,buf); + + RegDeleteTreeW(HKEY_LOCAL_MACHINE, fullkey); + RegDeleteTreeW(HKEY_CURRENT_USER, fullkey); + + return S_OK; } static HRESULT WINAPI InputProcessorProfiles_AddLanguageProfile( diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c index 2e71eec..0e8ab5b 100644 --- a/dlls/msctf/tests/inputprocessor.c +++ b/dlls/msctf/tests/inputprocessor.c @@ -68,7 +68,7 @@ static void test_Unregister(void) { HRESULT hr; hr = ITfInputProcessorProfiles_Unregister(g_ipp, &CLSID_FakeService); - todo_wine ok(SUCCEEDED(hr),"Unable to unregister text service(%x)\n",hr); + ok(SUCCEEDED(hr),"Unable to unregister text service(%x)\n",hr); } START_TEST(inputprocessor)
participants (1)
-
Alexandre Julliard