wxZipFSHandler does not report non-local zip archives as openable anymore

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-03-25 22:20:34 +00:00
parent cb332bc6b7
commit 08b50c2c6c

View File

@@ -67,7 +67,8 @@ wxZipFSHandler::~wxZipFSHandler()
bool wxZipFSHandler::CanOpen(const wxString& location)
{
wxString p = GetProtocol(location);
return (p == wxT("zip"));
return (p == wxT("zip")) &&
(GetProtocol(GetLeftLocation(location)) == wxT("file"));
}