mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-16 17:15:05 +01:00
(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)
This commit is contained in:
parent
2408a68910
commit
54fe17050b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user