NowPlaying.dll: iTunes shuffle state change now detected immediately.

This commit is contained in:
Birunthan Mohanathas
2011-11-19 11:44:04 +00:00
parent 42ce3d9666
commit d3a2a8a137
3 changed files with 40 additions and 14 deletions

View File

@ -1969,17 +1969,14 @@ BOOL CRainmeter::ExecuteBang(const std::wstring& bang, const std::wstring& arg,
ExecuteCommand(command.c_str() + notwhite, meterWindow);
}
}
else if (args[i] == L'"' && args[i + 1] == L'"' && args[i + 2] == L'"')
else if (args[i] == L'"' && isize > (i + 2) && args[i + 1] == L'"' && args[i + 2] == L'"')
{
i += 3;
if (isize > i)
std::wstring::size_type pos = arg.find(L"\"\"\"", i);
if (pos != std::wstring::npos)
{
std::wstring::size_type pos = arg.find(L"\"\"\"", i);
if (pos != std::wstring::npos)
{
i = pos + 2; // Skip "", loop will skip last "
}
i = pos + 2; // Skip "", loop will skip last "
}
}
}