#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;
meta = 0;
for (i = 0; i < ln; i++)
{
- switch (loc[i])
+ switch ( loc[i].GetValue() )
{
case wxT('/') : case wxT(':') : case wxT('#') :
meta = loc[i];