]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_zip.cpp
changed wxUSE_DRAGIMAG to wxUSE_DRAGIMAGE and use it everywhere now
[wxWidgets.git] / src / common / fs_zip.cpp
index 3a4f8deab63deaa2f7b52052742d0e6ae84e5180..16da95be508af4b3ffba1627ef82f836a4f7c221 100644 (file)
@@ -10,7 +10,7 @@
 
 
 #ifdef __GNUG__
 
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "fs_zip.h"
 #endif
 
 #include "wx/wxprec.h"
 #endif
 
 #include "wx/wxprec.h"
@@ -67,7 +67,8 @@ wxZipFSHandler::~wxZipFSHandler()
 bool wxZipFSHandler::CanOpen(const wxString& location)
 {
     wxString p = GetProtocol(location);
 bool wxZipFSHandler::CanOpen(const wxString& location)
 {
     wxString p = GetProtocol(location);
-    return (p == wxT("zip"));
+    return (p == wxT("zip")) && 
+           (GetProtocol(GetLeftLocation(location)) == wxT("file"));
 }
 
 
 }