Mac GDI_GetFontNumByName: void __fastcc (uint8_t* pFontName ECX, uint16_t* pFontNumOut EDX)
ECX -> EDI = the Pascal-string font name (GetFNum 0x0030ae4a [ESP]). EDX -> [EBP-0x118] = the out short. If GetFNum returns 0 it falls back to the system font: GetFontName(0, buf) 0x0030ae50, then a compare 0x0030b564 against the requested name. The font number is written through EDX (MOV [ECX],AX at 0x00023807). There are no stack args. Plain RET after the stack guard; EAX holds only the guard value. Callers: GDI_InitStockObjects (twice).
Changes 1, applied together
Set prototype
mac 0x00023785signatureundefined GDI_GetFontNumByName(void)→void GDI_GetFontNumByName(uint8_t* pFontName, uint16_t* pFontNumOut)conventionunknown→__fastcc