summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-05 11:53:48 +0000
committertron <tron@openttd.org>2005-08-05 11:53:48 +0000
commitc78af95d1d3ed714d365fc9d9005e39f926bfb80 (patch)
tree156ba2b5231e6c0ab0f9fe6830a7b60ec10af251 /saveload.c
parent4696ef802a1c3b037a07a841945d73b52720a163 (diff)
downloadopenttd-c78af95d1d3ed714d365fc9d9005e39f926bfb80.tar.xz
(svn r2810) Threads may now return information when they terminate using a void*.
Also add the new files to the MSVC project files.
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/saveload.c b/saveload.c
index 0c33d8c83..a4ef8c80d 100644
--- a/saveload.c
+++ b/saveload.c
@@ -1235,7 +1235,7 @@ static inline void SaveFileDone(void)
/** We have written the whole game into memory, _save_pool, now find
* and appropiate compressor and start writing to file.
*/
-static void SaveFileToDisk(void* arg)
+static void* SaveFileToDisk(void* arg)
{
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format);
/* XXX - backup _sl.buf cause it is used internally by the writer
@@ -1258,7 +1258,7 @@ static void SaveFileToDisk(void* arg)
ShowErrorMessage(STR_4007_GAME_SAVE_FAILED, STR_NULL, 0, 0);
SaveFileDone();
- return;
+ return NULL;
}
/* We have written our stuff to memory, now write it to file! */
@@ -1293,6 +1293,7 @@ static void SaveFileToDisk(void* arg)
fclose(_sl.fh);
SaveFileDone();
+ return NULL;
}