This commit is contained in:
Arvid Norberg 2005-08-17 21:21:28 +00:00
parent bdbb40b5fb
commit e509d8d30c
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace
std::string ret;
ret.resize(size);
size = wcstombs(&ret[0], ws.c_str(), size + 1);
if (ret == wchar_t(-1)) return s;
if (size == wchar_t(-1)) return s;
ret.resize(size);
return ret;
}