mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Plugin: Fixed error when using forward slash in Plugin=
This commit is contained in:
parent
1fece1e4d8
commit
74ffb0a9d1
@ -118,7 +118,7 @@ void CMeasurePlugin::ReadOptions(CConfigParser& parser, const WCHAR* section)
|
||||
|
||||
const std::wstring& plugin = parser.ReadString(section, L"Plugin", L"");
|
||||
std::wstring pluginFile = Rainmeter->GetPluginPath();
|
||||
size_t pos = plugin.rfind(L'\\');
|
||||
size_t pos = plugin.find_last_of(L"\\/");
|
||||
if (pos != std::wstring::npos)
|
||||
{
|
||||
pluginFile.append(plugin, pos, plugin.length() - pos);
|
||||
|
Loading…
Reference in New Issue
Block a user