X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7b06c8ce1bf0c34e4c5bde45181205101a5661e..82bf96f54849a84b449d1b9f0fcff8f28649b07e:/src/common/fs_zip.cpp diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index 5e56e3c55f..b8ef9b69f9 100644 --- a/src/common/fs_zip.cpp +++ b/src/common/fs_zip.cpp @@ -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 ); }