From d3cfd4dd5e3a62932eafb6eaf960cc02d102b7ef Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 6 Oct 2009 07:21:48 +0000 Subject: [PATCH] close file --- source/ngc/fileop.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ngc/fileop.cpp b/source/ngc/fileop.cpp index 56a71b2..89563a2 100644 --- a/source/ngc/fileop.cpp +++ b/source/ngc/fileop.cpp @@ -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;