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:
parent
cd643ab5c9
commit
40968e3993
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user