user32/tests: Disable IME for msg tests.

This commit is contained in:
Austin Lund 2010-12-03 21:33:01 +10:00 committed by Alexandre Julliard
parent 0fe32508a7
commit 555e59a454
1 changed files with 11 additions and 0 deletions

View File

@ -12669,6 +12669,8 @@ START_TEST(msg)
char **test_argv; char **test_argv;
BOOL ret; BOOL ret;
BOOL (WINAPI *pIsWinEventHookInstalled)(DWORD)= 0;/*GetProcAddress(user32, "IsWinEventHookInstalled");*/ BOOL (WINAPI *pIsWinEventHookInstalled)(DWORD)= 0;/*GetProcAddress(user32, "IsWinEventHookInstalled");*/
HMODULE hModuleImm32;
BOOL (WINAPI *pImmDisableIME)(DWORD);
int argc = winetest_get_mainargs( &test_argv ); int argc = winetest_get_mainargs( &test_argv );
if (argc >= 3) if (argc >= 3)
@ -12682,6 +12684,15 @@ START_TEST(msg)
init_procs(); 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 (!RegisterWindowClasses()) assert(0);
if (pSetWinEventHook) if (pSetWinEventHook)