Author: alink
Date: Thu Jun 12 12:39:51 2008
New Revision: 27115
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27115&view=rev
Log:
tiny simplification of a stat() call for win32
(not tested but logically equivalent)
Modified:
trunk/src/filesystem.cpp
Modified: trunk/src/filesystem.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/filesystem.cpp?rev=27115&r1=27114&r2=27115&view=diff
==============================================================================
--- trunk/src/filesystem.cpp (original)
+++ trunk/src/filesystem.cpp Thu Jun 12 12:39:51 2008
@@ -615,7 +615,7 @@
{
#ifdef _WIN32
struct stat st;
- return (::stat(name.c_str(), &st) != 0) ? false : true;
+ return (::stat(name.c_str(), &st) == 0);
#else
struct stat st;
return (::stat(name.c_str(), &st) != -1);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits