mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
fixed DocDecompressor
This commit is contained in:
parent
e37b4dca88
commit
19d46654aa
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ bool PalmDocStream::processZeroRecord() {
|
|||
myMaxRecordIndex = std::min(myTextRecordNumber, (unsigned short)(endSectionIndex - 1));
|
||||
//TODO Insert in this point error message about uncompatible records and numRecords from Header
|
||||
|
||||
myMaxRecordSize = 2 * PdbUtil::readUnsignedShort(*myBase); // myBase offset: ^ + 12
|
||||
myMaxRecordSize = PdbUtil::readUnsignedShort(*myBase); // myBase offset: ^ + 12
|
||||
if (myCompressionVersion == 17480) {
|
||||
myMaxRecordSize *= 2;
|
||||
}
|
||||
if (myMaxRecordSize == 0) {
|
||||
myErrorCode = ERROR_UNKNOWN;
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue