- Changed std::transform(..., ::towlower/::towupper) to _wcsupr/_wcslwr

- MathParser: Fixed stack overflow (and possible crash) when the nested conditional limit is exceeded
This commit is contained in:
Birunthan Mohanathas
2012-01-25 16:00:49 +00:00
parent 430e287bec
commit 35be827071
6 changed files with 22 additions and 30 deletions

View File

@ -70,7 +70,7 @@ std::wstring CGroup::CreateGroup(const std::wstring& str)
strTmp.assign(str, pos, str.find_last_not_of(L" \t\r\n") - pos + 1);
// Convert to lower
std::transform(strTmp.begin(), strTmp.end(), strTmp.begin(), ::towlower);
_wcslwr(&strTmp[0]);
}
return strTmp;