REDIVIVUS

Proposals / #1529

Mac GetProcessHeap: void* __cdecl (void) Win32 shim returning NULL

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim GetProcessHeap. It reads no args: the body is XOR EAX,EAX / RET. Callers use the result as the heap handle: SERR_AddStormFacility 0x00010d29 and SErrDestroy 0x0000ff03 both pass EAX as [ESP] to HeapAlloc/HeapFree. This matches Win32 HANDLE GetProcessHeap(void); it is typed void* because HANDLE is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x00028ca4

    signatureundefined GetProcessHeap(void)→void* GetProcessHeap(void)
    conventionunknown→__cdecl