winecfg: Get the builtins list from the architecture-specific PE directory.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-04-26 14:14:20 +02:00
parent 717e394af3
commit b51aab9199
1 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,18 @@
WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
#ifdef __i386__
static const char pe_dir[] = "\\i386-windows";
#elif defined __x86_64__
static const char pe_dir[] = "\\x86_64-windows";
#elif defined __arm__
static const char pe_dir[] = "\\arm-windows";
#elif defined __aarch64__
static const char pe_dir[] = "\\aarch64-windows";
#else
static const char pe_dir[] = "";
#endif
/* dlls that shouldn't be configured anything other than builtin; list must be sorted*/
static const char * const builtin_only[] =
{
@ -332,6 +344,8 @@ static void load_library_list( HWND dialog )
sprintf( var, "WINEDLLDIR%u", i++ );
if (!GetEnvironmentVariableA( var, path, MAX_PATH )) break;
load_library_list_from_dir( dialog, path, FALSE );
strcat( path, pe_dir );
load_library_list_from_dir( dialog, path, FALSE );
}
/* get rid of duplicate entries */