From 08b50c2c6cef0b223338feffad26d103930f1f82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 25 Mar 2001 22:20:34 +0000 Subject: [PATCH] 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 --- src/common/fs_zip.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")); } -- 2.45.2