Fixed lseek in wrapper

This commit is contained in:
TheFloW 2016-01-26 18:15:52 +01:00
parent b2164a9e42
commit d49254aa2d
2 changed files with 3 additions and 3 deletions

View File

@ -71,10 +71,10 @@ int fileIoWrite(SceUID fd, const void *data, SceSize size) {
return sceIoWrite(fd, data, size);
}
int fileIoLseek(SceUID fd, int offset, int whence) {
SceOff fileIoLseek(SceUID fd, SceOff offset, int whence) {
int res = verifyFd(fd);
if (res < 0) {
return psp2LinkIoLseek(fd, offset, whence);
return (SceOff)psp2LinkIoLseek(fd, offset, whence);
}
return sceIoLseek(fd, offset, whence);

View File

@ -23,7 +23,7 @@ int fileIoOpen(const char *file, int flags, SceMode mode);
int fileIoClose(SceUID fd);
int fileIoRead(SceUID fd, void *data, SceSize size);
int fileIoWrite(SceUID fd, const void *data, SceSize size);
int fileIoLseek(SceUID fd, int offset, int whence);
SceOff fileIoLseek(SceUID fd, SceOff offset, int whence);
int fileIoRemove(const char *file);
int fileIoMkdir(const char *dirname, SceMode mode);
int fileIoRmdir(const char *dirname);