diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-26 21:26:12 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-26 21:26:12 +0200 |
commit | c2f84af73d4812a7099ba1339ae92f2cd0536eae (patch) | |
tree | 950e4153a0f2e9d4a2b474cd1908303b56d3090a /libs/ardour/plugin_manager.cc | |
parent | 27dac7c31f761c9dd83bc3f69196632f050fbab5 (diff) |
case insensitive ".dll" for VST plugins - fixes #6285
TODO: check portability of strcasestr()
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 |