Fixed bug in ZipFileSystem

This commit is contained in:
yvt 2013-08-25 18:06:32 +09:00
parent bf76f7105e
commit 45cfc4689a

View File

@ -284,6 +284,7 @@ namespace spades {
baseStream(stream), autoClose(autoClose){ baseStream(stream), autoClose(autoClose){
SPADES_MARK_FUNCTION(); SPADES_MARK_FUNCTION();
cursorPos = stream->GetPosition();
zlib_filefunc_def def = CreateZLibFileFunc(); zlib_filefunc_def def = CreateZLibFileFunc();
zip = unzOpen2("ZipFile.zip", &def); zip = unzOpen2("ZipFile.zip", &def);
if(!zip){ if(!zip){
@ -291,7 +292,6 @@ namespace spades {
} }
currentStream = NULL; currentStream = NULL;
cursorPos = stream->GetPosition();
} }
ZipFileSystem::~ZipFileSystem() { ZipFileSystem::~ZipFileSystem() {