mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 15:00:17 +02:00
Merge pull request #5686 from lioncash/fd
x32/FD: Ensure sendfile updates offset if set
This commit is contained in:
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();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user