1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

(svn r2810) Threads may now return information when they terminate using a void*.

Also add the new files to the MSVC project files.
This commit is contained in:
tron
2005-08-05 11:53:48 +00:00
parent 4696ef802a
commit c78af95d1d
5 changed files with 64 additions and 17 deletions

View File

@@ -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;
}