(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 96a18d859f
commit 7d1e3086b8
1 changed files with 3 additions and 1 deletions

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
}