ntdll: Add a more explicit failure for 32-bit prefix in wow64 mode.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56039
This commit is contained in:
Alexandre Julliard 2023-12-19 13:58:23 +01:00
parent 343398d23e
commit 443e49084e

View file

@ -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 );