Alexandre Julliard : ntdll: Add a more explicit failure for 32-bit prefix in wow64 mode.
Module: wine Branch: master Commit: 443e49084ed2a85cba0b559eaf7921d503638911 URL: https://gitlab.winehq.org/wine/wine/-/commit/443e49084ed2a85cba0b559eaf7921d... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Dec 19 13:58:23 2023 +0100 ntdll: Add a more explicit failure for 32-bit prefix in wow64 mode. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56039 --- dlls/ntdll/unix/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ntdll/unix/server.c b/dlls/ntdll/unix/server.c index 7211457387c..53fcc61ccf3 100644 --- a/dlls/ntdll/unix/server.c +++ b/dlls/ntdll/unix/server.c @@ -1565,6 +1565,8 @@ size_t server_init_process(void) { const char *arch = getenv( "WINEARCH" ); + if (is_win64 && arch && !strcmp( arch, "win32" )) + fatal_error( "WINEARCH is set to 'win32' but this is not supported in wow64 mode.\n" ); if (arch && strcmp( arch, "win32" ) && strcmp( arch, "win64" )) fatal_error( "WINEARCH set to invalid value '%s', it must be either win32 or win64.\n", arch );
participants (1)
-
Alexandre Julliard