[Bug] A better way to workaround a strange problem when extracting some SNB files with PDF contents.

This commit is contained in:
Li Fanxi 2011-03-03 00:06:34 +08:00
parent 60c7c66349
commit e373c822e2

View File

@ -83,6 +83,8 @@ class SNBFile:
data = snbFile.read(bSize)
if len(data) < 32768:
uncompressedData += bzdc.decompress(data)
else:
uncompressedData += data
except Exception, e:
print e
if len(uncompressedData) != self.plainStreamSizeUncompressed: