Signed-off-by: chenjiangyi chenjiangyi@uniontech.com
peb was limited in limit_2g ,but after user_space_wow_limit was assigned a value in init_peb function , wow64_params can be allocated in limit_4g if application perfers.
@julliard
From: chenjiangyi chenjiangyi@uniontech.com
Signed-off-by: chenjiangyi chenjiangyi@uniontech.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 7193cceb87e..2d832a4c548 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -1810,7 +1810,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, limit_2g - 1, &size, + status = NtAllocateVirtualMemory( NtCurrentProcess(), (void **)&wow64_params, user_space_wow_limit, &size, MEM_COMMIT, PAGE_READWRITE ); assert( !status );