From b51aab9199221d0b4c2c58c7f4a483180f749721 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 26 Apr 2021 14:14:20 +0200 Subject: [PATCH] winecfg: Get the builtins list from the architecture-specific PE directory. Signed-off-by: Alexandre Julliard --- programs/winecfg/libraries.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/programs/winecfg/libraries.c b/programs/winecfg/libraries.c index ae66509c9d0..0c5fcc65ced 100644 --- a/programs/winecfg/libraries.c +++ b/programs/winecfg/libraries.c @@ -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 */