close file

This commit is contained in:
dborth 2009-10-06 07:22:14 +00:00
parent ff78bdfaa5
commit da58b6b3c0

View File

@ -856,6 +856,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;