diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-06 01:06:34 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-06 01:06:34 -0300 |
| commit | dcf0f0be389aca6fa60eebf57942bd48337f5d08 (patch) | |
| tree | 269c813bf4b7c817e48f6951ddaab3727043b789 | |
| parent | 69e32e5bbc661627b9548bf414fff67f1756034d (diff) | |
Fix possible regression on bsd
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Bsd/IClient.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs b/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs index cc497026..d88737da 100644 --- a/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs +++ b/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs @@ -268,11 +268,13 @@ namespace Ryujinx.Core.OsHle.Services.Bsd byte[] IpAdress = NewBsdSocket.IpAddress.GetAddressBytes(); - AMemoryHelper.WriteBytes(Context.Memory, AddrBufferPtr, IpAdress); + Writer.Write(IpAdress); + + AMemoryHelper.WriteBytes(Context.Memory, AddrBufferPtr, MS.ToArray()); Context.ResponseData.Write(Sockets.Count - 1); Context.ResponseData.Write(0); - Context.ResponseData.Write(IpAdress.Length); + Context.ResponseData.Write(MS.Length); } } else |
