From: Václav Slavík Date: Sun, 25 Mar 2001 22:20:34 +0000 (+0000) Subject: wxZipFSHandler does not report non-local zip archives as openable anymore X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/08b50c2c6cef0b223338feffad26d103930f1f82?ds=inline 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 --- diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index 3a4f8deab6..036c001abd 100644 --- a/src/common/fs_zip.cpp +++ b/src/common/fs_zip.cpp @@ -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")); }