use ZIP entry modification time, not the (inexistent) file modification time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2713fedc46
commit
468c46935a
@ -108,14 +108,23 @@ wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& l
|
||||
s = new wxZipFSInputStream(leftFile);
|
||||
if (s && s->IsOk())
|
||||
{
|
||||
#if wxUSE_DATETIME
|
||||
wxDateTime dtMod;
|
||||
#endif // wxUSE_DATETIME
|
||||
|
||||
bool found = false;
|
||||
while (!found)
|
||||
{
|
||||
wxZipEntry *ent = s->GetNextEntry();
|
||||
if (!ent)
|
||||
break;
|
||||
|
||||
if (ent->GetInternalName() == right)
|
||||
{
|
||||
found = true;
|
||||
dtMod = ent->GetDateTime();
|
||||
}
|
||||
|
||||
delete ent;
|
||||
}
|
||||
if (found)
|
||||
@ -125,8 +134,7 @@ wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& l
|
||||
GetMimeTypeFromExt(location),
|
||||
GetAnchor(location)
|
||||
#if wxUSE_DATETIME
|
||||
, wxFileSystem::URLToFileName(left).
|
||||
GetModificationTime()
|
||||
, dtMod
|
||||
#endif // wxUSE_DATETIME
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user