winecfg:also track *.acm files in librarie overrides

Jérôme Gardou jerome.gardou at gmail.com
Sat Jan 24 06:16:24 CST 2009


---
 programs/winecfg/libraries.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

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




More information about the wine-patches mailing list