wineboot: Fix PROCESSOR_ARCHITECTURE reg value.

On my Windows machine, PROCESSOR_ARCHITECTURE has the value "AMD64",
but under wine (since 4.1) the value is "Intel64".

Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Brendan McGrath 2019-02-09 15:06:29 +11:00 committed by Alexandre Julliard
parent 4ac31569f9
commit 4cd78c3507
1 changed files with 5 additions and 4 deletions

View File

@ -422,7 +422,7 @@ static void create_environment_registry_keys( void )
HKEY env_key;
SYSTEM_CPU_INFORMATION sci;
WCHAR buffer[60], vendorid[13];
const WCHAR *arch;
const WCHAR *arch, *parch;
if (RegCreateKeyW( HKEY_LOCAL_MACHINE, EnvironW, &env_key )) return;
@ -435,12 +435,13 @@ static void create_environment_registry_keys( void )
switch (sci.Architecture)
{
case PROCESSOR_ARCHITECTURE_AMD64:
arch = !strcmpW(vendorid, authenticamdW) ? amd64W : intel64W;
arch = amd64W;
parch = !strcmpW(vendorid, authenticamdW) ? amd64W : intel64W;
break;
case PROCESSOR_ARCHITECTURE_INTEL:
default:
arch = x86W;
arch = parch = x86W;
break;
}
set_reg_value( env_key, ProcArchW, arch );
@ -455,7 +456,7 @@ static void create_environment_registry_keys( void )
case PROCESSOR_ARCHITECTURE_AMD64:
case PROCESSOR_ARCHITECTURE_INTEL:
default:
get_identifier( buffer, arch );
get_identifier( buffer, parch );
strcatW( buffer, commaW );
strcatW( buffer, vendorid );
break;