user32/tests: Disable IME for msg tests.
This commit is contained in:
parent
0fe32508a7
commit
555e59a454
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue