From 8f9d90df5df54439c2528b7f311ea6a50039ba6e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 23 Jun 2011 09:56:56 +0200 Subject: [PATCH] LadspaManager: really only load shared library on Linux Testing the last two characters of the filename against "so" is insufficient as this might cover e.g. ISO files as well. Therefore explicitely check for ".so". Thanks to Mikobuntu for the contribution. Closes #3289932. --- src/core/ladspa_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/ladspa_manager.cpp b/src/core/ladspa_manager.cpp index 9792eb286..605a56ad4 100644 --- a/src/core/ladspa_manager.cpp +++ b/src/core/ladspa_manager.cpp @@ -61,10 +61,11 @@ ladspaManager::ladspaManager() { const QFileInfo & f = *file; if( !f.isFile() || + f.fileName().right( 3 ).toLower() != #ifdef LMMS_BUILD_WIN32 - f.fileName().right( 3 ).toLower() != "dll" + "dll" #else - f.fileName().right( 2 ).toLower() != "so" + ".so" #endif ) {