mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 18:43:30 +00:00
[IMM32] ImeGetImeMenuItems is optional (#8008)
Supporting old IMEs. JIRA issue: CORE-19268 Do null check of ImeGetImeMenuItems function of IME side, in ImmGetImeMenuItemsAW function.
This commit is contained in:
parent
eb9c664d7e
commit
5d40ec3e8c
1 changed files with 9 additions and 0 deletions
|
@ -538,6 +538,15 @@ ImmGetImeMenuItemsAW(
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* ImeGetImeMenuItems is optional */
|
||||
if (!pImeDpi->ImeGetImeMenuItems)
|
||||
{
|
||||
WARN("ImeGetImeMenuItems is not available (optional).\n");
|
||||
ImmUnlockImeDpi(pImeDpi);
|
||||
ImmUnlockIMC(hIMC);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Is the IME ANSI? */
|
||||
BOOL bImcIsAnsi = Imm32IsImcAnsi(hIMC);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue