From 54fe17050b3ff0f5a0afe54d463224f04e39cb3b Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 24 Sep 2007 19:55:50 +0000 Subject: (svn r11156) -Fix r11155: fix one compiler makes the other warn ;) --- src/fileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf