Commit 4cd78c35 authored by Brendan McGrath's avatar Brendan McGrath Committed by Alexandre Julliard

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: 's avatarBrendan McGrath <brendan@redmandi.com> Signed-off-by: 's avatarHans Leidekker <hans@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4ac31569
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment