diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-27 18:23:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-27 18:23:51 +0200 |
commit | 5291400878597a0bd3b1a70578c9edcbf5be21fe (patch) | |
tree | 6c9c165dd037691fa7c3f842e496383d282c2c1c /libs/ardour/plugin_manager.cc | |
parent | 7c09182d753ee1cc7c6fc95b0093c7046ccebe78 (diff) |
case insensitive VST plugin file extension - fixes #6285
2nd attempt.
Diffstat (limited to 'libs/ardour/plugin_manager.cc')
-rw-r--r-- | libs/ardour/plugin_manager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index e88541317c..37eb61ef3b 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -686,8 +686,7 @@ PluginManager::windows_vst_refresh (bool cache_only) static bool windows_vst_filter (const string& str, void * /*arg*/) { /* Not a dotfile, has a prefix before a period, suffix is "dll" */ - - return str[0] != '.' && (str.length() > 4 && str.find (".dll") == (str.length() - 4)); + return str[0] != '.' && str.length() > 4 && strings_equal_ignore_case (".dll", str.substr(str.length() - 4)); } int |