Minor fix

This commit is contained in:
Birunthan Mohanathas 2012-08-05 16:01:45 +03:00
parent e0ec47f9a0
commit 69f84781f1

View File

@ -264,7 +264,7 @@ bool CConfigParser::GetSectionVariable(std::wstring& strVariable, std::wstring&
else if (*selectorSz == L'/') // Scale else if (*selectorSz == L'/') // Scale
{ {
errno = 0; errno = 0;
scale = _wtoi(selectorSz); scale = _wtoi(selectorSz + 1);
if (errno == EINVAL) if (errno == EINVAL)
{ {
scale = 1.0; scale = 1.0;