From c2f84af73d4812a7099ba1339ae92f2cd0536eae Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 26 Apr 2015 21:26:12 +0200 Subject: case insensitive ".dll" for VST plugins - fixes #6285 TODO: check portability of strcasestr() --- libs/ardour/vst_info_file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/ardour/vst_info_file.cc') diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index 2d68421103..2b79f2bc77 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -351,7 +351,7 @@ vstfx_write_info_file (FILE* fp, vector *infos) static bool vstfx_blacklist_stat (const char *dllpath, int personal) { - if (strstr (dllpath, ".so" ) == 0 && strstr(dllpath, ".dll") == 0) { + if (strstr (dllpath, ".so" ) == 0 && strcasestr(dllpath, ".dll") == 0) { return true; } string const path = vstfx_blacklist_path (dllpath, personal); @@ -435,7 +435,7 @@ vstfx_remove_infofile (const char *dllpath) static char * vstfx_infofile_stat (const char *dllpath, struct stat* statbuf, int personal) { - if (strstr (dllpath, ".so" ) == 0 && strstr(dllpath, ".dll") == 0) { + if (strstr (dllpath, ".so" ) == 0 && strcasestr(dllpath, ".dll") == 0) { return 0; } @@ -494,7 +494,7 @@ vstfx_infofile_for_read (const char* dllpath) static FILE * vstfx_infofile_create (const char* dllpath, int personal) { - if (strstr (dllpath, ".so" ) == 0 && strstr(dllpath, ".dll") == 0) { + if (strstr (dllpath, ".so" ) == 0 && strcasestr(dllpath, ".dll") == 0) { return 0; } -- cgit v1.2.3