REDIVIVUS

Proposals / #1528

Mac AllocModuleHandle: void* __cdecl (void)

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args. It allocates a handle of type 4 (module) via 0x000258d5, looks up its record (0x000257bc) and clears record +5 and +0x60, then returns the handle (MOV EAX,ESI at 0x00025a9d). Both callers keep EAX (WIN32MAC_Initialize 0x0001ec69 and LoadLibraryEx 0x00029d73 store it and pass it on). The handle is typed void* because HANDLE is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x00025a77

    signatureundefined AllocModuleHandle(void)→void* AllocModuleHandle(void)
    conventionunknown→__cdecl