Fix #7812 (Bookmarks don't work.)

This commit is contained in:
Kovid Goyal 2010-12-06 10:16:46 -07:00
parent 2ee84bad3a
commit 73f54f5e9d

View File

@ -1227,7 +1227,7 @@ class ZipFile:
self.fp.flush() self.fp.flush()
if zinfo.flag_bits & 0x08: if zinfo.flag_bits & 0x08:
# Write CRC and file sizes after the file data # Write CRC and file sizes after the file data
self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size, self.fp.write(struct.pack("<LLL", zinfo.CRC, zinfo.compress_size,
zinfo.file_size)) zinfo.file_size))
self.filelist.append(zinfo) self.filelist.append(zinfo)
self.NameToInfo[zinfo.filename] = zinfo self.NameToInfo[zinfo.filename] = zinfo