Austin Lund : user32/tests: Disable IME for msg tests.
Alexandre Julliard
julliard at winehq.org
Fri Dec 3 09:31:42 CST 2010
Module: wine
Branch: master
Commit: 555e59a45463a584f9252efa61a470c9de7954dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=555e59a45463a584f9252efa61a470c9de7954dd
Author: Austin Lund <austin.lund at gmail.com>
Date: Fri Dec 3 21:33:01 2010 +1000
user32/tests: Disable IME for msg tests.
---
dlls/user32/tests/msg.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index ab617c9..ccb4e39 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -12669,6 +12669,8 @@ START_TEST(msg)
char **test_argv;
BOOL ret;
BOOL (WINAPI *pIsWinEventHookInstalled)(DWORD)= 0;/*GetProcAddress(user32, "IsWinEventHookInstalled");*/
+ HMODULE hModuleImm32;
+ BOOL (WINAPI *pImmDisableIME)(DWORD);
int argc = winetest_get_mainargs( &test_argv );
if (argc >= 3)
@@ -12682,6 +12684,15 @@ START_TEST(msg)
init_procs();
+ hModuleImm32 = LoadLibrary("imm32.dll");
+ if (hModuleImm32) {
+ pImmDisableIME = (void *)GetProcAddress(hModuleImm32, "ImmDisableIME");
+ if (pImmDisableIME)
+ pImmDisableIME(0);
+ }
+ pImmDisableIME = NULL;
+ FreeLibrary(hModuleImm32);
+
if (!RegisterWindowClasses()) assert(0);
if (pSetWinEventHook)
More information about the wine-cvs
mailing list