diff options
author | tron <tron@openttd.org> | 2005-08-05 11:53:48 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-05 11:53:48 +0000 |
commit | bd48d67c28ba878fed75df6b276f92b6fab8ed01 (patch) | |
tree | 156ba2b5231e6c0ab0f9fe6830a7b60ec10af251 /saveload.c | |
parent | f315c95fa1221441106f1e6e4f4a0f7849ccb4b4 (diff) | |
download | openttd-bd48d67c28ba878fed75df6b276f92b6fab8ed01.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.c | 5 |
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; } |