1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

sys_net fixes

Fix lv2_socket_p2ps::connect
Fix sys_net_bnet_poll
This commit is contained in:
RipleyTom 2022-04-13 16:53:36 +02:00 committed by Megamouse
parent 91768c025c
commit d6b0263144
2 changed files with 2 additions and 2 deletions

View File

@ -1101,7 +1101,7 @@ error_code sys_net_bnet_poll(ppu_thread& ppu, vm::ptr<sys_net_pollfd> fds, s32 n
if (auto sock = idm::check_unlocked<lv2_socket>(fds_buf[i].fd))
{
signaled += sock->poll(fds[i], _fds[i]);
signaled += sock->poll(fds_buf[i], _fds[i]);
#ifdef _WIN32
connecting[i] = sock->is_connecting();
#endif

View File

@ -663,7 +663,7 @@ std::optional<s32> lv2_socket_p2ps::connect(const sys_net_sockaddr& addr)
name.sin_port = std::bit_cast<u16>(psa_in_p2p->sin_vport); // not a bug
send_u2s_packet(std::move(packet), reinterpret_cast<::sockaddr_in*>(&name), send_hdr.seq, true);
return true;
return CELL_OK;
}
s32 lv2_socket_p2ps::listen(s32 backlog)