mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-24 07:24:15 +00:00
Fix bsd recvfrom implementation (#730)
This commit is contained in:
parent
560ccbeb2d
commit
4926f6523d
1 changed files with 1 additions and 2 deletions
|
@ -484,7 +484,6 @@ namespace Ryujinx.HLE.HOS.Services.Bsd
|
||||||
SocketFlags socketFlags = (SocketFlags)context.RequestData.ReadInt32();
|
SocketFlags socketFlags = (SocketFlags)context.RequestData.ReadInt32();
|
||||||
|
|
||||||
(long receivePosition, long receiveLength) = context.Request.GetBufferType0x22();
|
(long receivePosition, long receiveLength) = context.Request.GetBufferType0x22();
|
||||||
(long sockAddrInPosition, long sockAddrInSize) = context.Request.GetBufferType0x21();
|
|
||||||
(long sockAddrOutPosition, long sockAddrOutSize) = context.Request.GetBufferType0x22(1);
|
(long sockAddrOutPosition, long sockAddrOutSize) = context.Request.GetBufferType0x22(1);
|
||||||
|
|
||||||
LinuxError errno = LinuxError.EBADF;
|
LinuxError errno = LinuxError.EBADF;
|
||||||
|
@ -502,7 +501,7 @@ namespace Ryujinx.HLE.HOS.Services.Bsd
|
||||||
}
|
}
|
||||||
|
|
||||||
byte[] receivedBuffer = new byte[receiveLength];
|
byte[] receivedBuffer = new byte[receiveLength];
|
||||||
EndPoint endPoint = ParseSockAddr(context, sockAddrInPosition, sockAddrInSize);
|
EndPoint endPoint = new IPEndPoint(IPAddress.Any, 0);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue