REDIVIVUS

Proposals / #1555

Mac AdjustWindowRectEx: BOOL __cdecl (pRect, dwStyle, bMenu, dwExStyle) Win32 shim

checked · by KierTaylor · submitted 2026-11-08

This is the Mac Win32-shim AdjustWindowRectEx. The body ignores its args and returns MOV EAX,1 (the client rect is left as is). The caller D2GFX_CreateWindow 0x002b5847 stores four args: [ESP]=LEA rect, [ESP+4]=style, [ESP+8]=0 (no menu), [ESP+0xc]=0x40000 (WS_EX_APPWINDOW). This matches Win32 BOOL AdjustWindowRectEx(LPRECT, DWORD, BOOL, DWORD). RECT is typed void* because the Win32 type is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x000312b5

    signatureundefined AdjustWindowRectEx(void)→BOOL AdjustWindowRectEx(void* pRect, uint32_t dwStyle, BOOL bMenu, uint32_t dwExStyle)
    conventionunknown→__cdecl