mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed double / in path that would cause plugin loading issue on windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5572 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5016236030
commit
481e263c20
@ -140,7 +140,10 @@ void RsPluginManager::loadPlugins(const std::vector<std::string>& plugin_directo
|
||||
{
|
||||
std::string fname;
|
||||
dirIt.d_name(fname);
|
||||
std::string fullname = plugin_directories[i] + "/" + fname;
|
||||
|
||||
char lc = plugin_directories[i][plugin_directories[i].length()-1] ; // length cannot be 0 here.
|
||||
|
||||
std::string fullname = (lc == '/' || lc == '\\')? (plugin_directories[i] + fname) : (plugin_directories[i] + "/" + fname) ;
|
||||
|
||||
if(!acceptablePluginName(fullname))
|
||||
continue ;
|
||||
|
Loading…
Reference in New Issue
Block a user