properly handle integer steps in plugin controls
[ardour.git] / libs / ardour / plugin_manager.cc
index e88541317c586ff42fc7c3dce307878d461688d4..37eb61ef3b88ea4d787517f057205fba85c8a707 100644 (file)
@@ -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