(svn r15706) -Fix: Make sure the filename passed to unlink() is always in file system encoding.

This commit is contained in:
michi_cc
2009-03-14 00:25:59 +00:00
parent fa35dc10e5
commit b1479bec02
2 changed files with 2 additions and 6 deletions

View File

@@ -251,6 +251,7 @@
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
#if !defined(WINCE)
#define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode))
#define unlink(file) _tunlink(OTTD2FS(file))
#endif /* WINCE */
const char *FS2OTTD(const TCHAR *name);