Core/Game: forgotten changes from r3cc82905662712385f0d03895a426310e6cc96bd

--HG--
branch : trunk
This commit is contained in:
silinoron
2010-09-03 22:40:16 -07:00
parent 5179d3149a
commit c05d0722f4
3 changed files with 14 additions and 9 deletions
+6 -1
View File
@@ -226,8 +226,13 @@ bool AccountMgr::normalizeString(std::string& utf8str)
size_t wstr_len = MAX_ACCOUNT_STR;
if (!Utf8toWStr(utf8str,wstr_buf,wstr_len))
return false;
#ifdef _MSC_VER
#pragma warning(disable: 4996)
#endif
std::transform(&wstr_buf[0], wstr_buf+wstr_len, &wstr_buf[0], wcharToUpperOnlyLatin);
#ifdef _MSC_VER
#pragma warning(default: 4996)
#endif
return WStrToUtf8(wstr_buf,wstr_len,utf8str);
}