1
0
Fork 0

(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)

release/0.6
glx 2007-09-24 19:55:50 +00:00
parent 2408a68910
commit 54fe17050b
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ FILE *FioFOpenFileSp(const char *filename, const char *mode, Searchpath sp, Subd
}
#if defined(WIN32)
if (GetFileAttributes(OTTD2FS(buf)) == -1) return NULL;
if (GetFileAttributes(OTTD2FS(buf)) == INVALID_FILE_ATTRIBUTES) return NULL;
#endif
f = fopen(buf, mode);