summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-02-23 12:56:10 +0000
committerDarkvater <darkvater@openttd.org>2007-02-23 12:56:10 +0000
commit1bbbbeeef19727639d80c9bfe760248d50720bc2 (patch)
tree8281000501fad69bd62fdfaf32ebf1cf2d050a9a /src/fios.cpp
parent6d199fcdb75e40ffdde0e612c301f2e74b901678 (diff)
downloadopenttd-1bbbbeeef19727639d80c9bfe760248d50720bc2.tar.xz
(svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fios.cpp b/src/fios.cpp
index 80f562ec1..fac9e3219 100644
--- a/src/fios.cpp
+++ b/src/fios.cpp
@@ -186,9 +186,7 @@ bool FileExists(const char *filename)
{
#if defined(WINCE)
/* There is always one platform that doesn't support basic commands... */
- HANDLE hand;
-
- hand = CreateFile(OTTD2FS(filename), 0, 0, NULL, OPEN_EXISTING, 0, NULL);
+ HANDLE hand = CreateFile(OTTD2FS(filename), 0, 0, NULL, OPEN_EXISTING, 0, NULL);
if (hand == INVALID_HANDLE_VALUE) return 1;
CloseHandle(hand);
return 0;