summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-01 00:14:22 +0000
committertron <tron@openttd.org>2005-08-01 00:14:22 +0000
commitfc5e2d4861dd10e751e7bc069fad77a1b0ee1513 (patch)
treebfb1d0b9f54310693b5e429b53d23b1c07727553 /win32.c
parentfcf5ace08fa0cdbb3c5a7d8f9457dcdb61741481 (diff)
downloadopenttd-fc5e2d4861dd10e751e7bc069fad77a1b0ee1513.tar.xz
(svn r2775) Deleting a file can fail, display an error message when it happens
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 422b1f159..ffd1754c0 100644
--- a/win32.c
+++ b/win32.c
@@ -911,12 +911,12 @@ void FiosMakeSavegameName(char *buf, const char *name)
sprintf(buf, "%s\\%s%s", _fios_path, name, extension);
}
-void FiosDelete(const char *name)
+bool FiosDelete(const char *name)
{
char path[512];
snprintf(path, lengthof(path), "%s\\%s", _fios_path, name);
- DeleteFile(path);
+ return DeleteFile(path) != 0;
}
bool FileExists(const char *filename)