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:
parent
6bb384b5f3
commit
fe80f9d91c
@ -356,9 +356,12 @@ static void AddFileToZip(const wxString& strPrefix, const wxString& strFile,
|
|||||||
zlfh.dwCRC = ComputeCRC(strFile);
|
zlfh.dwCRC = ComputeCRC(strFile);
|
||||||
|
|
||||||
const time_t tMod = ::wxFileModificationTime(strFile);
|
const time_t tMod = ::wxFileModificationTime(strFile);
|
||||||
const struct tm& t = *localtime(&tMod);
|
const struct tm* t = localtime(&tMod);
|
||||||
zlfh.nLastModDate = t.tm_mday + ((t.tm_mon+1) << 5) + ((t.tm_year-80) << 9);
|
if (t != NULL)
|
||||||
zlfh.nLastModTime = t.tm_sec/2 + (t.tm_min << 5) + (t.tm_hour << 11);
|
{
|
||||||
|
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.SeekO(nStartPos+sizeof(dwLocalSignature), wxFromStart);
|
||||||
fout.Write(&zlfh, sizeof(zlfh));
|
fout.Write(&zlfh, sizeof(zlfh));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user