Fixed error when compiling with mingw
parent
82cc038a83
commit
e9fa779a65
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue