mirror of
https://github.com/reactos/reactos.git
synced 2025-06-11 04:47:22 +00:00
[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:
parent
1aeac0bf24
commit
8e01ab830b
1 changed files with 2 additions and 3 deletions
|
@ -834,7 +834,6 @@ Fail:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Win: InternalImmLockIMC
|
|
||||||
LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
|
LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
|
||||||
{
|
{
|
||||||
HANDLE hIC;
|
HANDLE hIC;
|
||||||
|
@ -846,7 +845,7 @@ LPINPUTCONTEXT APIENTRY Imm32InternalLockIMC(HIMC hIMC, BOOL fSelect)
|
||||||
PIMEDPI pImeDpi = NULL;
|
PIMEDPI pImeDpi = NULL;
|
||||||
|
|
||||||
pClientImc = ImmLockClientImc(hIMC);
|
pClientImc = ImmLockClientImc(hIMC);
|
||||||
if (IS_NULL_UNEXPECTEDLY(pClientImc))
|
if (!pClientImc)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
RtlEnterCriticalSection(&pClientImc->cs);
|
RtlEnterCriticalSection(&pClientImc->cs);
|
||||||
|
@ -946,7 +945,7 @@ PCLIENTIMC WINAPI ImmLockClientImc(HIMC hImc)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pIMC = ValidateHandle(hImc, TYPE_INPUTCONTEXT);
|
pIMC = ValidateHandle(hImc, TYPE_INPUTCONTEXT);
|
||||||
if (IS_NULL_UNEXPECTEDLY(pIMC) || !Imm32CheckImcProcess(pIMC))
|
if (!pIMC || !Imm32CheckImcProcess(pIMC))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pClientImc = (PCLIENTIMC)pIMC->dwClientImcData;
|
pClientImc = (PCLIENTIMC)pIMC->dwClientImcData;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue