From 0ce986140a05c46a1d9deb8e8c056128d9ed201d Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 3 Dec 2006 21:49:18 +0000 Subject: [PATCH] Check for wxFS_READ in OpenFile. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filesys.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index c045f5e798..9e91441d04 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -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; -- 2.45.2