Fixed error when compiling with mingw

pull/261/head
Léo Terziman 2014-03-19 15:45:12 +01:00
parent 82cc038a83
commit e9fa779a65
1 changed files with 4 additions and 1 deletions

View File

@ -179,7 +179,10 @@ void ZipFile::Flush() {
// Constructor. // Constructor.
Q3BSPZipArchive::Q3BSPZipArchive(IOSystem* pIOHandler, const std::string& rFile) : m_ZipFileHandle(NULL), m_ArchiveMap() { Q3BSPZipArchive::Q3BSPZipArchive(IOSystem* pIOHandler, const std::string& rFile) : m_ZipFileHandle(NULL), m_ArchiveMap() {
if (! rFile.empty()) { if (! rFile.empty()) {
m_ZipFileHandle = unzOpen2(rFile.c_str(), &IOSystem2Unzip::get(pIOHandler)); zlib_filefunc_def mapping = IOSystem2Unzip::get(pIOHandler);
m_ZipFileHandle = unzOpen2(rFile.c_str(), &mapping);
if(m_ZipFileHandle != NULL) { if(m_ZipFileHandle != NULL) {
mapArchive(); mapArchive();
} }