REDIVIVUS

Proposals / #1314

Mac WSAGetLastError: int __cdecl (void) errno shim

checked · by KierTaylor · submitted 2026-11-06

The Mac body has no argument reads. It calls the libc errno-location stub 0x0030b0d8 and returns *EAX (MOV EAX,[EAX]) with a plain RET. This is the POSIX stand-in for Winsock's int WSAGetLastError(void). The caller is FlushClientPackets 0x001ad8e6.

Changes 1, applied together

  1. Set prototype mac 0x002dd8ec

    signatureundefined WSAGetLastError(void)→int WSAGetLastError(void)
    conventionunknown→__cdecl