Mac INPUT_DialogKeyHandler: __cdecl void (D2UIMouseMsgStrc * pMsg) (from Windows twin)
Ghidra vmac 111 · 3c6740e
Mac body reads [EBP+8] into EDI and uses it as the UI message: passes it to each dialog control's key callback, reads the key code at +0x8 (compared with 0x1b/0xd and handed in EDX to DIALOG_HandleEnterKeyEvent), and writes the result fields +0x18/+0x1c; no ECX/EDX input, RET / tail JMP. Windows twin INPUT_DialogKeyHandler 0x004b7a90 is void (D2UIMouseMsgStrc * pMsg).
Changes 1, applied together
Set prototype
mac 0x000a48dbsignatureundefined INPUT_DialogKeyHandler(void)→void INPUT_DialogKeyHandler(D2UIMouseMsgStrc * pMsg)conventionunknown→__cdecl