REDIVIVUS

Proposals / #922

Mac INPUT_DialogKeyHandler: __cdecl void (D2UIMouseMsgStrc * pMsg) (from Windows twin)

applied · by KierTaylor · submitted 2026-11-02, applied 2026-11-02

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

  1. Set prototype mac 0x000a48db

    signatureundefined INPUT_DialogKeyHandler(void)→void INPUT_DialogKeyHandler(D2UIMouseMsgStrc * pMsg)
    conventionunknown→__cdecl