REDIVIVUS

Proposals / #1458

Mac SFileSetIoErrorMode: BOOL __cdecl (int32_t nErrorMode, void* pfnErrorHandler)

checked · by KierTaylor · submitted 2026-11-08

The Mac body stores [EBP+8] (the mode) and [EBP+0xc] (the handler) into two globals, then MOV EAX,1 / RET. There are no register args. Same as Windows twin 0x004166b0 BOOL SFileSetIoErrorMode(int32_t nErrorMode, pfnSFileReadError* pfnErrorHandler). The handler is typed void* because pfnSFileReadError does not exist in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x0001556a

    signatureundefined SFileSetIoErrorMode(void)→BOOL SFileSetIoErrorMode(int32_t nErrorMode, void* pfnErrorHandler)
    conventionunknown→__cdecl