[PATCH 0/1] MR5587: ntdll: Allocate wow64 environment block within the 32-bit AS.
From: Billy Laws <blaws05(a)gmail.com> --- dlls/ntdll/unix/env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index ad9ab0dc220..b15db0ec23c 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -1815,7 +1815,7 @@ static void *build_wow64_parameters( const RTL_USER_PROCESS_PARAMETERS *params ) + ((params->RuntimeInfo.MaximumLength + 1) & ~1) + params->EnvironmentSize); - status = NtAllocateVirtualMemory( NtCurrentProcess(), (void **)&wow64_params, 0, &size, + status = NtAllocateVirtualMemory( NtCurrentProcess(), (void **)&wow64_params, limit_2g - 1, &size, MEM_COMMIT, PAGE_READWRITE ); assert( !status ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5587
participants (2)
-
Billy Laws -
Billy Laws (@bylaws)