(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)
This commit is contained in:
@@ -297,7 +297,7 @@ FILE *FioFOpenFileSp(const char *filename, const char *mode, Searchpath sp, Subd
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
if (GetFileAttributes(OTTD2FS(buf)) == -1) return NULL;
|
if (GetFileAttributes(OTTD2FS(buf)) == INVALID_FILE_ATTRIBUTES) return NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
f = fopen(buf, mode);
|
f = fopen(buf, mode);
|
||||||
|
Reference in New Issue
Block a user