From 40968e39937e3af3da399f66e7024f754ba1236b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 7 Sep 2020 01:04:36 -0400 Subject: [PATCH] bsd: Resolve unused value within SendToImpl Previously the address provided to SendToImpl would never be propagated to SendTo(). This fixes that. --- src/core/hle/service/sockets/bsd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index de6b150f7c..7b9dd42d81 100644 --- a/src/core/hle/service/sockets/bsd.cpp +++ b/src/core/hle/service/sockets/bsd.cpp @@ -764,6 +764,7 @@ std::pair BSD::SendToImpl(s32 fd, u32 flags, const std::vector& SockAddrIn guest_addr_in; std::memcpy(&guest_addr_in, addr.data(), sizeof(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));