Explorar el Código

Fix possible regression on bsd

gdkchan hace 8 años
padre
commit
dcf0f0be38
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      Ryujinx.Core/OsHle/Services/Bsd/IClient.cs

+ 4 - 2
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