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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user