[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.
This commit is contained in:
Katayama Hirofumi MZ 2023-12-29 20:57:27 +09:00 committed by GitHub
parent 1aeac0bf24
commit 8e01ab830b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;