diff options
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 4 |
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; |