From 243420c5d906a8ac29e11a80538f6cabb0f8bdce Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 1 Jul 2016 10:13:14 +0100 Subject: [PATCH] Added initializers --- src/osgPlugins/zip/unzip.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/zip/unzip.h b/src/osgPlugins/zip/unzip.h index cc774ae33..e22a00fbf 100644 --- a/src/osgPlugins/zip/unzip.h +++ b/src/osgPlugins/zip/unzip.h @@ -75,14 +75,24 @@ DECLARE_HANDLE(HZIP); typedef DWORD ZRESULT; // return codes from any of the zip functions. Listed later. -typedef struct -{ int index; // index of this file within the zip +struct ZIPENTRY +{ + ZIPENTRY(): + index(0), + attr(0), + atime(0), + ctime(0), + mtime(0), + comp_size(0), + unc_size(0) {} + + int index; // index of this file within the zip TCHAR name[MAX_PATH]; // filename within the zip DWORD attr; // attributes, as in GetFileAttributes. FILETIME atime,ctime,mtime;// access, create, modify filetimes long comp_size; // sizes of item, compressed and uncompressed. These long unc_size; // may be -1 if not yet known (e.g. being streamed in) -} ZIPENTRY; +}; HZIP OpenZip(const TCHAR *fn, const char *password); HZIP OpenZip(void *z,unsigned int len, const char *password);