Skip to content

Commit

Permalink
close file
Browse files Browse the repository at this point in the history
  • Loading branch information
dborth committed Oct 6, 2009
1 parent ff78bdf commit da58b6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/ngc/fileop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da58b6b

Please sign in to comment.