mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 01:11:03 +08:00
[USER32] Get/SetWindowLongPtr about PIMEUI (#4625)
In ImeWndProc_common, correctly get/set the PIMEUI value by Get/SetWindowLongPtrW. CORE-11700
This commit is contained in:
committed by
GitHub
parent
3892252bc5
commit
7151c30079
@@ -959,6 +959,7 @@ ImeWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicod
|
||||
NtUserSetWindowFNID(hwnd, FNID_IME);
|
||||
pimeui = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IMEUI));
|
||||
pimeui->spwnd = pWnd;
|
||||
SetWindowLongPtrW(hwnd, 0, (LONG_PTR)pimeui);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -967,7 +968,7 @@ ImeWndProc_common(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicod
|
||||
ERR("Wrong window class for Ime! fnId 0x%x\n",pWnd->fnid);
|
||||
return 0;
|
||||
}
|
||||
pimeui = ((PIMEWND)pWnd)->pimeui;
|
||||
pimeui = (PIMEUI)GetWindowLongPtrW(hwnd, 0);
|
||||
if (pimeui == NULL)
|
||||
{
|
||||
ERR("Window is not set to IME!\n");
|
||||
|
||||
Reference in New Issue
Block a user