mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue