close file

This commit is contained in:
dborth 2009-10-06 07:21:48 +00:00
parent d390a05870
commit d3cfd4dd5e

View File

@ -857,6 +857,7 @@ SaveFile (char * buffer, char *filepath, size_t datasize, bool silent)
if(writesize != nextwrite) break; // write failure
written += writesize;
}
fclose (file);
if(written != datasize) written = 0;