mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Don't throw on invalid whence (return fs::error::einval)
This commit is contained in:
parent
8461a5cbe2
commit
a166d3680e
4 changed files with 5 additions and 10 deletions
|
@ -598,8 +598,7 @@ namespace fs
|
|||
const s64 new_pos =
|
||||
whence == fs::seek_set ? offset :
|
||||
whence == fs::seek_cur ? offset + pos :
|
||||
whence == fs::seek_end ? offset + size() :
|
||||
(fmt::raw_error("fs::container_stream<>::seek(): invalid whence"), 0);
|
||||
whence == fs::seek_end ? offset + size() : -1;
|
||||
|
||||
if (new_pos < 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue