Code cleanup.

This commit is contained in:
spx
2011-09-29 17:14:51 +00:00
parent 1493aec2a1
commit 86fd454277
5 changed files with 10 additions and 104 deletions

View File

@ -175,9 +175,14 @@ void CMeasurePlugin::ReadConfig(CConfigParser& parser, const WCHAR* section)
m_ID = id++;
if (InitializeFunc)
{
// Remove current directory from DLL search path
SetDllDirectory(L"");
double maxValue;
maxValue = InitializeFunc(m_Plugin, parser.GetFilename().c_str(), section, m_ID);
// Reset to default
SetDllDirectory(L"");
CSystem::ResetWorkingDirectory();
const std::wstring& szMaxValue = parser.ReadString(section, L"MaxValue", L"");