mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-25 18:51:50 +01:00
close file
This commit is contained in:
parent
d1bca1e3de
commit
026632ada7
@ -858,6 +858,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