Commit c1958ddc authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

ntdll: Don't release address space on 64-bit macOS.

parent 900dfca3
......@@ -4128,6 +4128,13 @@ static void virtual_release_address_space(void)
char *base = (char *)0x82000000;
char *limit = get_wow_user_space_limit();
#if defined(__APPLE__) && !defined(__i386__)
/* On 64-bit macOS, don't release any address space.
* It needs to be reserved for use by Wow64
*/
return;
#endif
if (limit > (char *)0xfffff000) return; /* 64-bit limit, nothing to do */
if (limit > base)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment