mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 23:42:14 +00:00
(retro_file) Small cleanup in fopen()
This commit is contained in:
parent
bbb80a8ffa
commit
24d0f40959
@ -217,12 +217,8 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len)
|
||||
{
|
||||
stream->mappos = 0;
|
||||
stream->mapped = NULL;
|
||||
stream->mapsize = 0;
|
||||
stream->mapsize = retro_fseek(stream, 0, SEEK_END);
|
||||
|
||||
if (retro_fseek(stream, 0, SEEK_END) != 0)
|
||||
goto error;
|
||||
|
||||
stream->mapsize = retro_ftell(stream);
|
||||
if (stream->mapsize == (uint64_t)-1)
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user