REDIVIVUS

Proposals / #1533

Mac GetLastError: uint32_t __cdecl (void) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim GetLastError. It reads no args: MOV EAX,[global last-error] / RET (0x0002b1c9). Callers use the value: WriteErrorLog 0x00010983 does CMP EAX,5 (ERROR_ACCESS_DENIED), and SFILE_ReadFileChecked 0x00014d09 tests it on read failure. This matches Win32 DWORD GetLastError(void).

Changes 1, applied together

  1. Set prototype mac 0x0002b1c0

    signatureundefined GetLastError(void)→uint32_t GetLastError(void)
    conventionunknown→__cdecl