]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_zip.cpp
wxString::FormatV() fix (bug 416853)
[wxWidgets.git] / src / common / fs_zip.cpp
index 3a4f8deab63deaa2f7b52052742d0e6ae84e5180..036c001abdf44ebf8a9612c37c88d8b53b519b07 100644 (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"));
 }