1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 19:42:17 +02:00

fixed DocDecompressor

This commit is contained in:
Nikolay Pultsin 2014-09-17 03:11:00 +01:00
parent e37b4dca88
commit 19d46654aa

View file

@ -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;