From 1d219ad7b650b606383cb2499fe70397a26cbff3 Mon Sep 17 00:00:00 2001 From: glx Date: Tue, 22 Jan 2008 15:47:40 +0000 Subject: (svn r11945) -Fix: FileExists() failed for non latin paths (win32) --- src/fios.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/fios.cpp') diff --git a/src/fios.cpp b/src/fios.cpp index 93ec66174..b34939f32 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -19,6 +19,8 @@ #ifdef WIN32 # include # include +# define access _taccess +# define unlink _tunlink #else # include #endif /* WIN32 */ @@ -202,7 +204,7 @@ bool FileExists(const char *filename) CloseHandle(hand); return 0; #else - return access(filename, 0) == 0; + return access(OTTD2FS(filename), 0) == 0; #endif } -- cgit v1.2.3-70-g09d2