Browse Source

Fixed error when compiling with mingw

Léo Terziman 11 years ago
parent
commit
e9fa779a65
1 changed files with 4 additions and 1 deletions
  1. 4 1
      code/Q3BSPZipArchive.cpp

+ 4 - 1
code/Q3BSPZipArchive.cpp

@@ -179,7 +179,10 @@ void ZipFile::Flush() {
 //	Constructor.
 Q3BSPZipArchive::Q3BSPZipArchive(IOSystem* pIOHandler, const std::string& rFile) : m_ZipFileHandle(NULL), m_ArchiveMap() {
 	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) {
 			mapArchive();
 		}