From 1c50d6836601b8a6258dd6e299b3f299aa8d4a0f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 15 Nov 2008 16:21:23 +0100 Subject: Packed size info support --- zip/zip.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'zip/zip.cpp') diff --git a/zip/zip.cpp b/zip/zip.cpp index 75cb37a..14698ea 100644 --- a/zip/zip.cpp +++ b/zip/zip.cpp @@ -1,5 +1,5 @@ /* ZIP plugin for Tux Commander - * version 0.5.2, designed for ZipArchive v3.2.0 + * version 0.5.3, designed for ZipArchive v3.2.0 * Copyright (C) 2008 Tomas Bzatek * Check for updates on tuxcmd.sourceforge.net * @@ -47,8 +47,8 @@ -#define VERSION "0.5.2" -#define BUILD_DATE "2008-11-14" +#define VERSION "0.5.3" +#define BUILD_DATE "2008-11-15" #define DEFAULT_BLOCK_SIZE 65536 @@ -205,7 +205,8 @@ void build_global_filelist(struct TVFSGlobs *globs) struct TVFSItem *item = (struct TVFSItem*)malloc(sizeof(struct TVFSItem)); memset(item, 0, sizeof(struct TVFSItem)); - item->iSize = (u_int64_t)fh->m_uUncomprSize; + item->iSize = (int64_t)fh->m_uUncomprSize; + item->iPackedSize = (int64_t)fh->m_uComprSize; if (fh->IsDirectory()) item->ItemType = vDirectory; else item->ItemType = vRegular; -- cgit v1.2.3