(svn r11945) -Fix: FileExists() failed for non latin paths (win32)

This commit is contained in:
glx 2008-01-22 15:47:40 +00:00
parent 22973fc2ce
commit 1d219ad7b6

View File

@ -19,6 +19,8 @@
#ifdef WIN32
# include <tchar.h>
# include <io.h>
# define access _taccess
# define unlink _tunlink
#else
# include <unistd.h>
#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
}