Merge pull request #713 from aschwant/master

Fixed incorrect file name causing plugins to fail to load
This commit is contained in:
zilmar 2015-10-30 11:27:12 +11:00
commit 1f6bebd5f1
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ void CPluginList::AddPluginFromDir ( CPath Dir)
}
Plugin.FullPath = Dir;
Plugin.FileName = Dir.GetDirectory().substr(m_PluginDir.GetDirectory().length());
std::string& fullPath = Dir;
std::string& pluginPath = m_PluginDir;
Plugin.FileName = fullPath.substr(pluginPath.length());
if (GetProcAddress(hLib,"DllAbout") != NULL)
{