Patch level :2.0 nopatch

Files correlati     :librerie
Ricompilazione Demo : [ ]
Commento            :sistemato problema compressione files con ora modifica cazzuta


git-svn-id: svn://10.65.10.50/trunk@10297 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2002-06-05 15:32:56 +00:00
parent 6bb384b5f3
commit fe80f9d91c

@ -356,9 +356,12 @@ static void AddFileToZip(const wxString& strPrefix, const wxString& strFile,
zlfh.dwCRC = ComputeCRC(strFile);
const time_t tMod = ::wxFileModificationTime(strFile);
const struct tm& t = *localtime(&tMod);
zlfh.nLastModDate = t.tm_mday + ((t.tm_mon+1) << 5) + ((t.tm_year-80) << 9);
zlfh.nLastModTime = t.tm_sec/2 + (t.tm_min << 5) + (t.tm_hour << 11);
const struct tm* t = localtime(&tMod);
if (t != NULL)
{
zlfh.nLastModDate = t->tm_mday + ((t->tm_mon+1) << 5) + ((t->tm_year-80) << 9);
zlfh.nLastModTime = t->tm_sec/2 + (t->tm_min << 5) + (t->tm_hour << 11);
}
fout.SeekO(nStartPos+sizeof(dwLocalSignature), wxFromStart);
fout.Write(&zlfh, sizeof(zlfh));