https://git.reactos.org/?p=reactos.git;a=commitdiff;h=650cd772346c40ae6b3f2…
commit 650cd772346c40ae6b3f237f277fb487d72801e9
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Jul 1 18:03:42 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Jul 1 18:03:42 2021 +0900
[IMM32] ImmDisableIME calls NtUserDisableThreadIme (#3776)
- Just call NtUserDisableThreadIme in ImmDisableIME directly. CORE-11700
---
dll/win32/imm32/imm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index 3b268feb545..45be160a528 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -850,6 +850,9 @@ BOOL WINAPI ImmDestroyContext(HIMC hIMC)
*/
BOOL WINAPI ImmDisableIME(DWORD idThread)
{
+#ifdef __REACTOS__
+ return NtUserDisableThreadIme(idThread);
+#else
if (idThread == (DWORD)-1)
disable_ime = TRUE;
else {
@@ -859,6 +862,7 @@ BOOL WINAPI ImmDisableIME(DWORD idThread)
LeaveCriticalSection(&threaddata_cs);
}
return TRUE;
+#endif
}
/***********************************************************************