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/fst/scanner.cc | |
parent | 27dac7c31f761c9dd83bc3f69196632f050fbab5 (diff) |
case insensitive ".dll" for VST plugins - fixes #6285
TODO: check portability of strcasestr()
Diffstat (limited to 'libs/fst/scanner.cc')
-rw-r--r-- | libs/fst/scanner.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/fst/scanner.cc b/libs/fst/scanner.cc index c7cbd897db..aac1eb5d2a 100644 --- a/libs/fst/scanner.cc +++ b/libs/fst/scanner.cc @@ -75,7 +75,7 @@ int main (int argc, char **argv) { char *dllpath = NULL; if (argc == 3 && !strcmp("-f", argv[1])) { dllpath = argv[2]; - if (strstr (dllpath, ".so" ) || strstr(dllpath, ".dll")) { + if (strstr (dllpath, ".so" ) || strcasestr(dllpath, ".dll")) { vstfx_remove_infofile(dllpath); vstfx_un_blacklist(dllpath); } @@ -105,7 +105,7 @@ int main (int argc, char **argv) { #endif #ifdef WINDOWS_VST_SUPPORT - else if (strstr (dllpath, ".dll")) { + else if (strcasestr (dllpath, ".dll")) { infos = vstfx_get_info_fst(dllpath); } #endif |