X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de0702d065066f8ef63a9581985def172777ebb6..30a72e62977e4c532ae2f265db72535a5cccbbab:/src/common/fs_zip.cpp?ds=sidebyside diff --git a/src/common/fs_zip.cpp b/src/common/fs_zip.cpp index 3a4f8deab6..cbef9152dd 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" @@ -22,7 +22,8 @@ #if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_ZIPSTREAM #ifndef WXPRECOMP -#include "wx/wx.h" + #include "wx/intl.h" + #include "wx/log.h" #endif #include "wx/hash.h" @@ -67,7 +68,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")); }