From 8bd19cc93fb9fc0d06021174cf08a95137721a69 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Fri, 20 Feb 2009 08:00:34 -0600 Subject: [PATCH] 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 ca2bbda64f2..3950a9452a4 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 2e71eec8971..0e8ab5b16f1 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)