>From 4f7d55dbaec18600c877277d5e070da6bf9e9d58 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sun, 25 Jan 2009 15:19:57 +0100 Subject: [PATCH] winecfg: Also track *.acm files in dlls overrides MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.0.6" This is a multi-part message in MIME format. --------------1.6.0.6 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- programs/winecfg/libraries.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) --------------1.6.0.6 Content-Type: text/x-patch; name="4f7d55dbaec18600c877277d5e070da6bf9e9d58.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="4f7d55dbaec18600c877277d5e070da6bf9e9d58.diff" diff --git a/programs/winecfg/libraries.c b/programs/winecfg/libraries.c index 6abe04d..003d78a 100644 --- a/programs/winecfg/libraries.c +++ b/programs/winecfg/libraries.c @@ -280,6 +280,16 @@ static void load_library_list_from_dir( HWND dialog, const char *dir_path, int c if (is_builtin_only( name )) continue; SendDlgItemMessageA( dialog, IDC_DLLCOMBO, CB_ADDSTRING, 0, (LPARAM)name ); } + else if (len > 7 && !strcmp( de->d_name + len - 7, ".acm.so")) + { + if (is_16bit_dll( dir_path, de->d_name )) continue; /* 16-bit dlls can't be configured */ + len -= 3; + memcpy( name, de->d_name, len ); + name[len] = 0; + /* skip dlls that should always be builtin */ + if (is_builtin_only( name )) continue; + SendDlgItemMessageA( dialog, IDC_DLLCOMBO, CB_ADDSTRING, 0, (LPARAM)name ); + } else if (check_subdirs) { struct stat st; --------------1.6.0.6--