use a filename, not URL, when quering its modification time

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-29 11:56:48 +00:00
parent 7456f3828a
commit f7b06c8ce1

View File

@@ -119,14 +119,17 @@ wxFSFile* wxZipFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& l
delete ent; delete ent;
} }
if (found) if (found)
{
return new wxFSFile(s, return new wxFSFile(s,
left + wxT("#zip:") + right, left + wxT("#zip:") + right,
GetMimeTypeFromExt(location), GetMimeTypeFromExt(location),
GetAnchor(location) GetAnchor(location)
#if wxUSE_DATETIME #if wxUSE_DATETIME
, wxDateTime(wxFileModificationTime(left)) , wxFileSystem::URLToFileName(left).
GetModificationTime()
#endif // wxUSE_DATETIME #endif // wxUSE_DATETIME
); );
}
} }
delete s; delete s;