From 9ac0393cea2d4d77a22498e9de3107e8e6b11682 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:43:34 +0200 Subject: [PATCH] ReceiveFrom: Copy proxyBuffer contents to buffer --- .../HOS/Services/Sockets/Bsd/Impl/ManagedProxySocket.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocket.cs b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocket.cs index 73608c030..90a9131f1 100644 --- a/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocket.cs +++ b/src/Ryujinx.HLE/HOS/Services/Sockets/Bsd/Impl/ManagedProxySocket.cs @@ -176,6 +176,8 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd.Impl receiveSize = ProxyClient.ReceiveFrom(proxyBuffer, WinSockHelper.ConvertBsdSocketFlags(flags), ref temp); + proxyBuffer[..receiveSize].CopyTo(buffer); + remoteEndPoint = (IPEndPoint)temp; result = LinuxError.SUCCESS; }