diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index a7adb169f..d47b02398 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -320,12 +320,11 @@ s64 PS4_SYSV_ABI posix_lseek(int d, s64 offset, int whence) { s64 result = sceKernelLseek(d, offset, whence); if (result < 0) { LOG_ERROR(Kernel_Pthread, "posix_lseek: error = {}", result); + ErrSceToPosix(result); // Workaround for XNA AudioEngine if (whence == SEEK_SET && (s32)offset == -1) { - SetPosixErrno(EINVAL); return offset; } - ErrSceToPosix(result); return -1; } return result;