[IMM32] Follow-up of #4588 (ffbdb7d)

CORE-11700
This commit is contained in:
Katayama Hirofumi MZ 2022-07-23 12:42:54 +09:00
parent ffbdb7d39e
commit bfe959e62c

View file

@ -499,7 +499,11 @@ Imm32GetImeMenuItemWInterProcess(HIMC hIMC, DWORD dwFlags, DWORD dwType, LPVOID
pView->dwFlags = dwFlags;
pView->dwType = dwType;
pView->dwItemCount = dwItemCount;
pView->Parent.cbSize = (lpImeParentMenu ? sizeof(IMEMENUITEMINFOW) : 0);
if (lpImeParentMenu)
{
pView->Parent = *(LPIMEMENUITEMINFOW)lpImeParentMenu;
pView->Parent.cbSize = sizeof(IMEMENUITEMINFOW);
}
if (!SendMessageW(hImeWnd, WM_IME_SYSTEM, IMS_GETIMEMENU, (LPARAM)hIMC))
goto Quit;