Fixed bug in ZipFileSystem
This commit is contained in:
parent
bf76f7105e
commit
45cfc4689a
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user