Skip to content

Commit

Permalink
fix: correct DllCall parameter type and assignment logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Sep 27, 2024
1 parent 5a970c6 commit b1e0a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/vim_ime.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ VIM_IME_SET(SetSts:=0, WinTitle:="A"){
cbSize := 4+4+(PtrSize*6)+16
stGTI := Buffer(cbSize,0)
NumPut("UInt", cbSize, stGTI.Ptr,0) ; DWORD cbSize;
hwnd := DllCall("GetGUIThreadInfo", "UInt", 0, "Ptr", stGTI.Ptr)
hwnd := DllCall("GetGUIThreadInfo", "UInt", 0, "UInt",stGTI.Ptr)
? NumGet(stGTI.Ptr,8+PtrSize,"Uint") : hwnd
}

Return DllCall("SendMessage"
, "UInt", DllCall("imm32\ImmGetDefaultIMEWnd", "UInt", hwnd)
, "UInt", 0x0283 ;Message : WM_IME_CONTROL
Expand Down

0 comments on commit b1e0a09

Please sign in to comment.