mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-14 13:59:24 +00:00
Merge pull request #493 from coestergaard/master
File seek beyond file size should not fail
This commit is contained in:
commit
e569582e14
@ -463,7 +463,7 @@ s64 sceIoLseek(int id, s64 offset, int whence) {
|
||||
seek = FILEMOVE_END;
|
||||
break;
|
||||
}
|
||||
if(newPos < 0 || newPos > f->info.size)
|
||||
if(newPos < 0)
|
||||
return -1;
|
||||
|
||||
f->asyncResult = (u32) pspFileSystem.SeekFile(f->handle, (s32) offset, seek);
|
||||
@ -497,7 +497,7 @@ u32 sceIoLseek32(int id, int offset, int whence) {
|
||||
seek = FILEMOVE_END;
|
||||
break;
|
||||
}
|
||||
if(newPos < 0 || newPos > f->info.size)
|
||||
if(newPos < 0)
|
||||
return -1;
|
||||
|
||||
f->asyncResult = (u32) pspFileSystem.SeekFile(f->handle, (s32) offset, seek);
|
||||
|
Loading…
x
Reference in New Issue
Block a user