Merge pull request #5686 from lioncash/fd

x32/FD: Ensure sendfile updates offset if set
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-07-10 10:14:18 -07:00
commit 94ccfefa84
1 file changed
+3
@@ -917,6 +917,9 @@ void RegisterFD(FEX::HLE::SyscallHandler* Handler) {
Local = *offset;
}
uint64_t Result = ::sendfile(out_fd, in_fd, Local_p, count);
if (Result != -1 && offset) {
*offset = static_cast<compat_off_t>(Local);
}
SYSCALL_ERRNO();
});