#include "wx/mimetype.h"
#include "wx/filename.h"
#include "wx/tokenzr.h"
-#include "wx/fileback.h"
+#include "wx/private/fileback.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;