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

Alexandre Julliard julliard at winehq.org
Fri Apr 24 10:00:08 CDT 2009


Module: wine
Branch: master
Commit: 32924bd662450304c9e1d8503582987980007cbb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=32924bd662450304c9e1d8503582987980007cbb

Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Apr 23 16:35:25 2009 -0500

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

---

 dlls/msctf/tests/inputprocessor.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index 3556922..ba6d1ee 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -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 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);
     ok(SUCCEEDED(hr),"Unable to register COM for TextService\n");
     hr = ITfInputProcessorProfiles_Register(g_ipp, &CLSID_FakeService);
@@ -609,7 +613,6 @@ START_TEST(inputprocessor)
 {
     if (SUCCEEDED(initialize()))
     {
-        gLangid = GetUserDefaultLCID();
         test_Register();
         test_RegisterCategory();
         test_EnumInputProcessorInfo();




More information about the wine-cvs mailing list