From c70056bc76096a9d468cafdc599de4fbbc9b1aa1 Mon Sep 17 00:00:00 2001
From: Mary <me@thog.eu>
Date: Sat, 4 Jul 2020 00:13:35 +0200
Subject: [PATCH] sockets: Make sure to write the receivedBuffer (#1346)

Fix #1341
---
 Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs b/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
index f4dd8ef27d..d36cb8a9dc 100644
--- a/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
+++ b/Ryujinx.HLE/HOS/Services/Sockets/Bsd/IClient.cs
@@ -1148,6 +1148,7 @@ namespace Ryujinx.HLE.HOS.Services.Sockets.Bsd
                 {
                     result = socket.Handle.Receive(receivedBuffer);
                     errno  = SetResultErrno(socket.Handle, result);
+                    context.Memory.Write((ulong)receivePosition, receivedBuffer);
                 }
                 catch (SocketException exception)
                 {