mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-29 23:42:14 +00:00
(retro_file) Fix fseek()
This commit is contained in:
parent
2b143af4dc
commit
c2eac57529
@ -310,13 +310,13 @@ ssize_t retro_fseek(RFILE *stream, ssize_t offset, int whence)
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return stream->mappos;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
ret = lseek(stream->fd, offset, whence);
|
||||
return ret == -1 ? -1 : 0;
|
||||
return ret < 0 ? -1 : ret;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user