Commit fd92f871 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

msctf: Implement InputProcessorProfiles::GetCurrentLanguage.

parent 6c842a86
...@@ -43,6 +43,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msctf); ...@@ -43,6 +43,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(msctf);
typedef struct tagInputProcessorProfiles { typedef struct tagInputProcessorProfiles {
const ITfInputProcessorProfilesVtbl *InputProcessorProfilesVtbl; const ITfInputProcessorProfilesVtbl *InputProcessorProfilesVtbl;
LONG refCount; LONG refCount;
LANGID currentLanguage;
} InputProcessorProfiles; } InputProcessorProfiles;
static void InputProcessorProfiles_Destructor(InputProcessorProfiles *This) static void InputProcessorProfiles_Destructor(InputProcessorProfiles *This)
...@@ -184,8 +186,14 @@ static HRESULT WINAPI InputProcessorProfiles_GetCurrentLanguage( ...@@ -184,8 +186,14 @@ static HRESULT WINAPI InputProcessorProfiles_GetCurrentLanguage(
ITfInputProcessorProfiles *iface, LANGID *plangid) ITfInputProcessorProfiles *iface, LANGID *plangid)
{ {
InputProcessorProfiles *This = (InputProcessorProfiles*)iface; InputProcessorProfiles *This = (InputProcessorProfiles*)iface;
FIXME("STUB:(%p)\n",This); TRACE("(%p) 0x%x\n",This,This->currentLanguage);
return E_NOTIMPL;
if (!plangid)
return E_INVALIDARG;
*plangid = This->currentLanguage;
return S_OK;
} }
static HRESULT WINAPI InputProcessorProfiles_ChangeCurrentLanguage( static HRESULT WINAPI InputProcessorProfiles_ChangeCurrentLanguage(
...@@ -288,6 +296,7 @@ HRESULT InputProcessorProfiles_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut ...@@ -288,6 +296,7 @@ HRESULT InputProcessorProfiles_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut
This->InputProcessorProfilesVtbl= &InputProcessorProfiles_InputProcessorProfilesVtbl; This->InputProcessorProfilesVtbl= &InputProcessorProfiles_InputProcessorProfilesVtbl;
This->refCount = 1; This->refCount = 1;
This->currentLanguage = GetUserDefaultLCID();
TRACE("returning %p\n", This); TRACE("returning %p\n", This);
*ppOut = (IUnknown *)This; *ppOut = (IUnknown *)This;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment