summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-09-24 19:55:50 +0000
committerglx <glx@openttd.org>2007-09-24 19:55:50 +0000
commit958895a7a7acbe71260d0e42cf8b9d9a7ac70642 (patch)
treea04b6e7ff5653ee16933b165bd9e8ed732e52804 /src
parent3e3122229469be29ebbfd43cb2b1018d900604b0 (diff)
downloadopenttd-958895a7a7acbe71260d0e42cf8b9d9a7ac70642.tar.xz
(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 140c9b2a7..14c6401d3 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -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);