Skip to content

Commit

Permalink
[Net] NetDll_sendto: Return proper status code
Browse files Browse the repository at this point in the history
This prevents systemlink lobby from failing
  • Loading branch information
Gliniak committed Apr 30, 2024
1 parent 0639361 commit efb19ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xenia/kernel/xam/xam_net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1700,8 +1700,9 @@ dword_result_t NetDll_sendto_entry(dword_t caller, dword_t socket_handle,
int ret = socket->SendTo(buf_ptr, buf_len, flags, to_ptr, to_len);
if (ret < 0) {
XThread::SetLastError(socket->GetLastWSAError());
return -1;
}
return ret;
return 0;
}
DECLARE_XAM_EXPORT1(NetDll_sendto, kNetworking, kImplemented);

Expand Down

0 comments on commit efb19ab

Please sign in to comment.