REDIVIVUS

Proposals / #888

Mac AUTOMAP_InvalidateLayerEntry: __fastcc void (HANDLE pFileHandle, uint * pLayerOffsets, int32_t nEntryOffset)

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

Ghidra vmac 111 · 3c6740e

Mac body: ECX (ESI) is the first argument of both the SetFilePointer and WriteFile calls, so it is the file handle; EDX (EDI) is indexed by the current layer and zeroed, then written out as a 0x190-byte buffer, so it is pLayerOffsets; [EBP+8] is tested for zero and used as the seek offset, so it is nEntryOffset. Same logic as Windows AUTOMAP_InvalidateLayerEntry 0x004586e0 (nEntryOffset stack, hFile ESI, pLayerOffsets EDI); Mac passes the two registers in ECX/EDX. (hFile is refused by the prefix check, so pFileHandle.)

Changes 1, applied together

  1. Set prototype mac 0x0009c34d

    signatureundefined AUTOMAP_InvalidateLayerEntry(void)→void AUTOMAP_InvalidateLayerEntry(HANDLE pFileHandle, uint * pLayerOffsets, int32_t nEntryOffset)
    conventionunknown→__fastcc