https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bfe959e62cf34b1260b2c…
commit bfe959e62cf34b1260b2c6e6ea27abfbad5c5f83
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Jul 23 12:42:54 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Sat Jul 23 12:42:54 2022 +0900
[IMM32] Follow-up of #4588 (ffbdb7d)
CORE-11700
---
dll/win32/imm32/ime.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dll/win32/imm32/ime.c b/dll/win32/imm32/ime.c
index 21cd6810c61..30fc0af9203 100644
--- a/dll/win32/imm32/ime.c
+++ b/dll/win32/imm32/ime.c
@@ -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;