REDIVIVUS

Proposals / #1530

Mac VirtualUnlock: BOOL __cdecl (void* pAddress, uint32_t dwSize) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim VirtualUnlock. The body ignores its args and returns MOV EAX,1. The only caller, SpiDestroy 0x00019abb, stores [ESP]=the buffer and [ESP+4]=0x2000 (two args, as in Win32 BOOL VirtualUnlock(LPVOID, SIZE_T)). The slots are kept because the caller passes them.

Changes 1, applied together

  1. Set prototype mac 0x00028d67

    signatureundefined VirtualUnlock(void)→BOOL VirtualUnlock(void* pAddress, uint32_t dwSize)
    conventionunknown→__cdecl