mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 04:50:48 +00:00
- Fixed: zipdir did not byte-swap file sizes in the central directory.
SVN r1787 (trunk)
This commit is contained in:
parent
48d78730f3
commit
8992f71773
1 changed files with 2 additions and 2 deletions
|
@ -980,8 +980,8 @@ int write_central_dir(FILE *zip, file_sorted_t *filep)
|
||||||
dir.ModTime = file->time;
|
dir.ModTime = file->time;
|
||||||
dir.ModDate = file->date;
|
dir.ModDate = file->date;
|
||||||
dir.CRC32 = file->crc32;
|
dir.CRC32 = file->crc32;
|
||||||
dir.CompressedSize = file->compressed_size;
|
dir.CompressedSize = LittleLong(file->compressed_size);
|
||||||
dir.UncompressedSize = file->uncompressed_size;
|
dir.UncompressedSize = LittleLong(file->uncompressed_size);
|
||||||
dir.NameLength = LittleShort((unsigned short)strlen(filep->path_in_zip));
|
dir.NameLength = LittleShort((unsigned short)strlen(filep->path_in_zip));
|
||||||
dir.ExtraLength = 0;
|
dir.ExtraLength = 0;
|
||||||
dir.CommentLength = 0;
|
dir.CommentLength = 0;
|
||||||
|
|
Loading…
Reference in a new issue