Add the final read block too.

This commit is contained in:
Alcaro 2015-09-17 22:10:06 +02:00
parent 097f81ef4e
commit 7054c8b214

View File

@ -191,6 +191,7 @@ bool retro_fmemcpy(const char *path, char *s, size_t len, ssize_t *bytes_written
{
*bytes_written += bytes_written_this;
}
*bytes_written += bytes_written_this;
retro_fclose(stream);
if (*bytes_written < 0)