From: André Zwing <nerv(a)dawncrow.de> --- dlls/ntdll/unix/env.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c index 4262d384c31..3db921e00a4 100644 --- a/dlls/ntdll/unix/env.c +++ b/dlls/ntdll/unix/env.c @@ -1837,18 +1837,12 @@ static void init_peb( RTL_USER_PROCESS_PARAMETERS *params, void *module ) peb->ImageSubSystemMinorVersion = main_image_info.MinorSubsystemVersion; #ifdef _WIN64 - switch (main_image_info.Machine) + if (main_image_info.Machine == IMAGE_FILE_MACHINE_I386 || main_image_info.Machine == IMAGE_FILE_MACHINE_ARMNT) { - case IMAGE_FILE_MACHINE_I386: - case IMAGE_FILE_MACHINE_ARMNT: NtCurrentTeb()->WowTebOffset = teb_offset; NtCurrentTeb()->Tib.ExceptionList = (void *)((char *)NtCurrentTeb() + teb_offset); wow_peb = (PEB32 *)((char *)peb + page_size); set_thread_id( NtCurrentTeb(), GetCurrentProcessId(), GetCurrentThreadId() ); - break; - case IMAGE_FILE_MACHINE_AMD64: - if (main_image_info.Machine == current_machine) break; - break; } #endif -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9714