]> git.saurik.com Git - wxWidgets.git/commitdiff
Check for wxFS_READ in OpenFile.
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 3 Dec 2006 21:49:18 +0000 (21:49 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Sun, 3 Dec 2006 21:49:18 +0000 (21:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filesys.cpp

index c045f5e79896e7b43658634e4f41b15a05c2294c..9e91441d040adcd5d7a3116df8b8350b1670c2b7 100644 (file)
@@ -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;