Mac DIALOG_HandleEnterKeyEvent: __fastcc int (D2DialogStrc * pDialog, uint32_t nKeyCode)
Ghidra vmac 111 · 3c6740e
Mac body: ECX is the dialog (its +0x20 flag is tested first); EDX (ESI) is compared with the key codes bound to command 5 in both binding slots; returns 1 on a match, else 0; no stack arguments, plain RET. Callers pass ECX = dialog with EDX = 0xd (INPUT_DialogEnterKey 0x000a4809/0x000a480b) or EDX = the message key code (INPUT_DialogKeyHandler 0x000a491e). Windows twin DIALOG_HandleEnterKeyEvent 0x004b7970 is int (void * pDialog, uint32_t nKeyCode).
Changes 1, applied together
Set prototype
mac 0x000a4b41signatureundefined DIALOG_HandleEnterKeyEvent(void)→int DIALOG_HandleEnterKeyEvent(D2DialogStrc * pDialog, uint32_t nKeyCode)conventionunknown→__fastcc