From 4926f6523d3130879e108403979ab68f1212f544 Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Sun, 14 Jul 2019 01:47:18 +0200 Subject: [PATCH] Fix bsd recvfrom implementation (#730) --- Ryujinx.HLE/HOS/Services/Bsd/IClient.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs b/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs index f33f9709..09f59b65 100644 --- a/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs +++ b/Ryujinx.HLE/HOS/Services/Bsd/IClient.cs @@ -484,7 +484,6 @@ namespace Ryujinx.HLE.HOS.Services.Bsd SocketFlags socketFlags = (SocketFlags)context.RequestData.ReadInt32(); (long receivePosition, long receiveLength) = context.Request.GetBufferType0x22(); - (long sockAddrInPosition, long sockAddrInSize) = context.Request.GetBufferType0x21(); (long sockAddrOutPosition, long sockAddrOutSize) = context.Request.GetBufferType0x22(1); LinuxError errno = LinuxError.EBADF; @@ -502,7 +501,7 @@ namespace Ryujinx.HLE.HOS.Services.Bsd } byte[] receivedBuffer = new byte[receiveLength]; - EndPoint endPoint = ParseSockAddr(context, sockAddrInPosition, sockAddrInSize); + EndPoint endPoint = new IPEndPoint(IPAddress.Any, 0); try {