On 2012-10-02 23:26, Dmitrii Kashin wrote:
> Yes, I am. If you give a patch, I'll test it.
Please try the attached one.
--
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++ GNU/Linux userspace developer, Debian Developer
diff --git a/zlibrary/core/src/filesystem/ZLInputStreamDecorator.cpp b/zlibrary/core/src/filesystem/ZLInputStreamDecorator.cpp
index b44cf9a..b0b65b9 100644
--- a/zlibrary/core/src/filesystem/ZLInputStreamDecorator.cpp
+++ b/zlibrary/core/src/filesystem/ZLInputStreamDecorator.cpp
@@ -24,7 +24,10 @@ ZLInputStreamDecorator::ZLInputStreamDecorator(shared_ptr<ZLInputStream> decorat
bool ZLInputStreamDecorator::open() {
bool result = myBaseStream->open();
- myBaseOffset = myBaseStream->offset();
+ if (result)
+ {
+ myBaseOffset = myBaseStream->offset();
+ }
return result;
}