Fixed regression with commands in de10352

This commit is contained in:
Birunthan Mohanathas 2012-05-07 07:42:12 +03:00
parent de10352cbd
commit efd051c4af

View File

@ -2066,11 +2066,11 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
} }
} }
if (command[0] == L'[' && command[1] == L'!') // Multi-bang if (command[0] == L'[') // Multi-bang
{ {
std::wstring bangs = command; std::wstring bangs = &command[1];
std::wstring::size_type start = std::wstring::npos; std::wstring::size_type start = 0;
int count = 0; int count = 1;
for (size_t i = 0, isize = bangs.size(); i < isize; ++i) for (size_t i = 0, isize = bangs.size(); i < isize; ++i)
{ {
if (bangs[i] == L'[') if (bangs[i] == L'[')