Fixed mingw32 compilation

This commit is contained in:
xawotihs
2013-12-13 21:27:40 +01:00
parent ec34380668
commit 88095c67b8
3 changed files with 6 additions and 1 deletions

View File

@@ -313,11 +313,15 @@ bool JFileSystem::readIntoString(const string & FilePath, string & target)
int fileSize = GetFileSize(file);
#ifndef __MINGW32__
try {
#endif
target.resize((std::string::size_type) fileSize);
#ifndef __MINGW32__
} catch (bad_alloc&) {
return false;
}
#endif
if (fileSize)