forked from ShuriZma/suyu
1
0
Fork 0

bsd: Resolve unused value within SendToImpl

Previously the address provided to SendToImpl would never be propagated
to SendTo(). This fixes that.
This commit is contained in:
Lioncash 2020-09-07 01:04:36 -04:00
parent cd643ab5c9
commit 40968e3993
1 changed files with 1 additions and 0 deletions

View File

@ -764,6 +764,7 @@ std::pair<s32, Errno> BSD::SendToImpl(s32 fd, u32 flags, const std::vector<u8>&
SockAddrIn guest_addr_in; SockAddrIn guest_addr_in;
std::memcpy(&guest_addr_in, addr.data(), sizeof(guest_addr_in)); std::memcpy(&guest_addr_in, addr.data(), sizeof(guest_addr_in));
addr_in = Translate(guest_addr_in); addr_in = Translate(guest_addr_in);
p_addr_in = &addr_in;
} }
return Translate(file_descriptors[fd]->socket->SendTo(flags, message, p_addr_in)); return Translate(file_descriptors[fd]->socket->SendTo(flags, message, p_addr_in));