Check for wxFS_READ in OpenFile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -385,6 +385,9 @@ wxFileSystemHandler *wxFileSystem::MakeLocal(wxFileSystemHandler *h)
|
|||||||
|
|
||||||
wxFSFile* wxFileSystem::OpenFile(const wxString& location, int flags)
|
wxFSFile* wxFileSystem::OpenFile(const wxString& location, int flags)
|
||||||
{
|
{
|
||||||
|
if ((flags & wxFS_READ) == 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
wxString loc = MakeCorrectPath(location);
|
wxString loc = MakeCorrectPath(location);
|
||||||
unsigned i, ln;
|
unsigned i, ln;
|
||||||
wxChar meta;
|
wxChar meta;
|
||||||
|
Reference in New Issue
Block a user