(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)
authorglx
Mon, 24 Sep 2007 19:55:50 +0000
changeset 7625 36b37d05937f
parent 7624 febff7f99ea1
child 7626 033a5a26b066
(svn r11156) -Fix r11155: fix one compiler makes the other warn ;)
src/fileio.cpp
--- a/src/fileio.cpp	Mon Sep 24 19:15:42 2007 +0000
+++ b/src/fileio.cpp	Mon Sep 24 19:55:50 2007 +0000
@@ -297,7 +297,7 @@
 	}
 
 #if defined(WIN32)
-	if (GetFileAttributes(OTTD2FS(buf)) == -1) return NULL;
+	if (GetFileAttributes(OTTD2FS(buf)) == INVALID_FILE_ATTRIBUTES) return NULL;
 #endif
 
 	f = fopen(buf, mode);