From 3f2306c4fbecf4ca321a6f32ce7cef8f8b2fc61c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 27 Apr 2015 00:40:07 +0200 Subject: Revert "case insensitive ".dll" for VST plugins - fixes #6285" This reverts commit c2f84af73d4812a7099ba1339ae92f2cd0536eae. strcasestr() is not compatible with mingw nor MSVC. different approach is needed. --- libs/ardour/plugin_manager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/plugin_manager.cc') diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 37eb61ef3b..e88541317c 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -686,7 +686,8 @@ 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 && strings_equal_ignore_case (".dll", str.substr(str.length() - 4)); + + return str[0] != '.' && (str.length() > 4 && str.find (".dll") == (str.length() - 4)); } int -- cgit v1.2.3