https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8e01ab830b985fe6d1f19…
commit 8e01ab830b985fe6d1f19dc5f6e347159328985e
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Dec 29 20:57:27 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Dec 29 20:57:27 2023 +0900
[IMM32] Disable some annoying logging (#6249)
@HBelusca said in ReactOS Chat:
hi, is it possible to disable those two dprints?
err:(../dll/win32/imm32/imm.c:949) pIMC was NULL
err:(../dll/win32/imm32/imm.c:849) pClientImc was NULL
they come out every other second of usage of any app in ReactOS.
JIRA issue: CORE-19268
Disable logging on two points by not using IS_NULL_UNEXPECTEDLY macro.
---
dll/win32/imm32/imm.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dll/win32/imm32/imm.c b/dll/win32/imm32/imm.c
index d3d4b7dcb07..175432ca09b 100644
--- a/dll/win32/imm32/imm.c
+++ b/dll/win32/imm32/imm.c
@@ -834,7 +834,6 @@ Fail:
return FALSE;
}
-// Win: InternalImmLockIMC
LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
{
HANDLE hIC;
@@ -846,7 +845,7 @@ LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
PIMEDPI pImeDpi = NULL;
pClientImc = ImmLockClientImc(hIMC);
- if (IS_NULL_UNEXPECTEDLY(pClientImc))
+ if (!pClientImc)
return NULL;
RtlEnterCriticalSection(&pClientImc->cs);
@@ -946,7 +945,7 @@ PCLIENTIMC WINAPI ImmLockClientImc(HIMC hImc)
return NULL;
pIMC = ValidateHandle(hImc, TYPE_INPUTCONTEXT);
- if (IS_NULL_UNEXPECTEDLY(pIMC) || !Imm32CheckImcProcess(pIMC))
+ if (!pIMC || !Imm32CheckImcProcess(pIMC))
return NULL;
pClientImc = (PCLIENTIMC)pIMC->dwClientImcData;