X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de0702d065066f8ef63a9581985def172777ebb6..c48269b9f7afca9c8e7076e0ceb06b933b2e88b8:/src/common/fs_zip.cpp diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index 3a4f8deab6..16da95be50 100644 --- a/src/common/fs_zip.cpp +++ b/src/common/fs_zip.cpp @@ -10,7 +10,7 @@ #ifdef __GNUG__ -#pragma implementation +#pragma implementation "fs_zip.h" #endif #include "wx/wxprec.h" @@ -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")); }