close file

This commit is contained in:
dborth 2009-10-06 07:21:01 +00:00
parent d1bca1e3de
commit 026632ada7

View File

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