Aric Stewart : msctf: Implement ITfInputProcessorProfiles:: GetActiveLanguageProfile.
Module: wine Branch: master Commit: b88f32f1161ebdb7815a543d53bc880e3a750bdf URL: http://source.winehq.org/git/wine.git/?a=commit;h=b88f32f1161ebdb7815a543d53... Author: Aric Stewart <aric(a)codeweavers.com> Date: Thu May 7 14:27:52 2009 -0500 msctf: Implement ITfInputProcessorProfiles::GetActiveLanguageProfile. --- dlls/msctf/inputprocessor.c | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/dlls/msctf/inputprocessor.c b/dlls/msctf/inputprocessor.c index c32fcb3..38e9368 100644 --- a/dlls/msctf/inputprocessor.c +++ b/dlls/msctf/inputprocessor.c @@ -324,9 +324,25 @@ static HRESULT WINAPI InputProcessorProfiles_GetActiveLanguageProfile( ITfInputProcessorProfiles *iface, REFCLSID rclsid, LANGID *plangid, GUID *pguidProfile) { + TF_LANGUAGEPROFILE profile; InputProcessorProfiles *This = (InputProcessorProfiles*)iface; - FIXME("STUB:(%p)\n",This); - return E_NOTIMPL; + + TRACE("(%p) %s %p %p\n",This,debugstr_guid(rclsid),plangid,pguidProfile); + + if (!rclsid || !plangid || !pguidProfile) + return E_INVALIDARG; + + if (get_active_textservice(rclsid, &profile)) + { + *plangid = profile.langid; + *pguidProfile = profile.guidProfile; + return S_OK; + } + else + { + *pguidProfile = GUID_NULL; + return S_FALSE; + } } static HRESULT WINAPI InputProcessorProfiles_GetLanguageProfileDescription(
participants (1)
-
Alexandre Julliard