REDIVIVUS

Proposals / #1532

Mac SetThreadPriority: BOOL __cdecl (void* hThread, int32_t nPriority) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim SetThreadPriority. The body ignores its args and returns MOV EAX,1. Both callers store two args: [ESP]=the thread handle and [ESP+4]=1 (THREAD_PRIORITY_ABOVE_NORMAL) (SFILE_CreateCdThread 0x000131cc and CreateThreadClientSocketOrSingleplayer 0x002dcd58). This matches Win32 BOOL SetThreadPriority(HANDLE, int); HANDLE is not in the Mac DB, so it is typed void*.

Changes 1, applied together

  1. Set prototype mac 0x0002c019

    signatureundefined SetThreadPriority(void)→BOOL SetThreadPriority(void* hThread, int32_t nPriority)
    conventionunknown→__cdecl