ReceiveFrom: Copy proxyBuffer contents to buffer

pull/5989/head
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
1 changed files with 2 additions and 0 deletions

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