Module: wine Branch: master Commit: 79fb59e21ed9da33b2dccdfca3f001ef54723555 URL: https://gitlab.winehq.org/wine/wine/-/commit/79fb59e21ed9da33b2dccdfca3f001e...
Author: Billy Laws blaws05@gmail.com Date: Wed Apr 17 18:27:56 2024 +0000
ntdll: Allocate wow64 environment block within the 32-bit address space.
---
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 );