]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
set command int (indicating whether the item is checked) correctly for the menu event...
[wxWidgets.git] / src / common / filesys.cpp
index 43c1ff93ae78526230ef567d0c9be30057dc1038..9e91441d040adcd5d7a3116df8b8350b1670c2b7 100644 (file)
@@ -27,7 +27,7 @@
 #include "wx/mimetype.h"
 #include "wx/filename.h"
 #include "wx/tokenzr.h"
-#include "wx/fileback.h"
+#include "wx/private/fileback.h"
 
 
 //--------------------------------------------------------------------------------
@@ -385,6 +385,9 @@ wxFileSystemHandler *wxFileSystem::MakeLocal(wxFileSystemHandler *h)
 
 wxFSFile* wxFileSystem::OpenFile(const wxString& location, int flags)
 {
+    if ((flags & wxFS_READ) == 0)
+        return NULL;
+
     wxString loc = MakeCorrectPath(location);
     unsigned i, ln;
     wxChar meta;