REDIVIVUS

Proposals / #1310

Mac CHATDLG_LadderPageUp: BOOL __cdecl OnPress (D2ControlStrc* pControl)

checked · by KierTaylor · submitted 2026-11-06

Its only code reference is from 0x003ce0d4, which is gaPredefinedForms[126].fpOnPressCallback (FORMS_PredefinedFormStrc array at 0x003cc914, field +0x20), typed OnPress = BOOL __cdecl (D2ControlStrc* pControl). The body ignores the control arg, moves the ladder scroll offset back one page (clamped at 0), returns MOV EAX,1 and does a plain RET, which fits the OnPress BOOL contract.

Changes 1, applied together

  1. Set prototype mac 0x002ce85b

    signatureundefined CHATDLG_LadderPageUp(void)→BOOL CHATDLG_LadderPageUp(D2ControlStrc* pControl)
    conventionunknown→__cdecl