x32/FD: Ensure sendfile updates offset if set

This commit is contained in:
LC committed 2026-07-10 05:58:49 -04:00
1 parent 77467eaf0c
commit 6e8bc337aa
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();
});