mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +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
|
if(writesize != nextwrite) break; // write failure
|
||||||
written += writesize;
|
written += writesize;
|
||||||
}
|
}
|
||||||
|
fclose (file);
|
||||||
|
|
||||||
if(written != datasize) written = 0;
|
if(written != datasize) written = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user