mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
close file
This commit is contained in:
parent
d390a05870
commit
d3cfd4dd5e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user