fix compile in VC++ with INI_ENCODING option

This commit is contained in:
chosenofbear 2015-06-23 09:25:15 -04:00
parent 55315a5258
commit 99dfe731e1
1 changed files with 4 additions and 0 deletions

View File

@ -348,7 +348,11 @@ void Config::readGameINI()
size_t inLen = game.title.size();
size_t outLen = inLen * 4;
std::string buf(outLen, '\0');
#ifdef _MSC_VER
const char *inPtr = game.title.c_str();
#else
char *inPtr = const_cast<char*>(game.title.c_str());
#endif
char *outPtr = const_cast<char*>(buf.c_str());
errno = 0;