Minor fixes

This commit is contained in:
spx
2012-06-21 02:06:17 -07:00
parent 6456b6adb3
commit 6c5cd602bc
4 changed files with 13 additions and 5 deletions

View File

@ -134,10 +134,13 @@ void CMeasurePlugin::ReadOptions(CConfigParser& parser, const WCHAR* section)
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
if (!m_Plugin)
{
// Try from settings path
pluginFile = Rainmeter->GetUserPluginPath();
pluginFile += pluginName;
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
if (Rainmeter->HasUserPluginPath())
{
// Try from settings path
pluginFile = Rainmeter->GetUserPluginPath();
pluginFile += pluginName;
m_Plugin = CSystem::RmLoadLibrary(pluginFile.c_str());
}
if (!m_Plugin)
{
LogWithArgs(LOG_ERROR, L"Plugin: \"%s\" not found", pluginName.c_str());