X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de0702d065066f8ef63a9581985def172777ebb6..fa8dca8dd1ba0d6ee9b2c5919a3a944ecde68a50:/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")); }