ReceiveFrom: Copy proxyBuffer contents to buffer

This commit is contained in:
TSR Berry 2024-09-24 15:43:34 +02:00
parent 4b79de6427
commit 9ac0393cea
No known key found for this signature in database
GPG Key ID: 52353C0A4CCA15E2

View File

@ -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;
}