(svn r12960) -Codechange: handle return values of (some) file system related functions.

This commit is contained in:
rubidium
2008-05-05 21:54:05 +00:00
parent 1050f07ed1
commit 56e1178dca
4 changed files with 19 additions and 14 deletions

View File

@@ -1114,7 +1114,7 @@ static uint ReadNoComp()
static void WriteNoComp(uint size)
{
fwrite(_sl.buf, 1, size, _sl.fh);
if (fwrite(_sl.buf, 1, size, _sl.fh) != size) SlError(STR_GAME_SAVELOAD_ERROR_FILE_NOT_WRITEABLE);
}
static bool InitNoComp()