msctf/tests: Use ITfInputProcessorProfiles::GetCurrentLanguage to get gLangid.

This commit is contained in:
Aric Stewart 2009-04-23 16:35:25 -05:00 committed by Alexandre Julliard
parent 46da8ef18b
commit 32924bd662
1 changed files with 4 additions and 1 deletions

View File

@ -105,6 +105,10 @@ static void test_Register(void)
static const WCHAR szDesc[] = {'F','a','k','e',' ','W','i','n','e',' ','S','e','r','v','i','c','e',0}; static const WCHAR szDesc[] = {'F','a','k','e',' ','W','i','n','e',' ','S','e','r','v','i','c','e',0};
static const WCHAR szFile[] = {'F','a','k','e',' ','W','i','n','e',' ','S','e','r','v','i','c','e',' ','F','i','l','e',0}; static const WCHAR szFile[] = {'F','a','k','e',' ','W','i','n','e',' ','S','e','r','v','i','c','e',' ','F','i','l','e',0};
hr = ITfInputProcessorProfiles_GetCurrentLanguage(g_ipp,&gLangid);
ok(SUCCEEDED(hr),"Unable to get current language id\n");
trace("Current Language %x\n",gLangid);
hr = RegisterTextService(&CLSID_FakeService); hr = RegisterTextService(&CLSID_FakeService);
ok(SUCCEEDED(hr),"Unable to register COM for TextService\n"); ok(SUCCEEDED(hr),"Unable to register COM for TextService\n");
hr = ITfInputProcessorProfiles_Register(g_ipp, &CLSID_FakeService); hr = ITfInputProcessorProfiles_Register(g_ipp, &CLSID_FakeService);
@ -609,7 +613,6 @@ START_TEST(inputprocessor)
{ {
if (SUCCEEDED(initialize())) if (SUCCEEDED(initialize()))
{ {
gLangid = GetUserDefaultLCID();
test_Register(); test_Register();
test_RegisterCategory(); test_RegisterCategory();
test_EnumInputProcessorInfo(); test_EnumInputProcessorInfo();