From c6d3c4207aa94c3ccc0e28d0d8361f579d9f6b0e Mon Sep 17 00:00:00 2001 From: Ac_K Date: Wed, 17 Feb 2021 21:10:53 +0100 Subject: [PATCH] settings: Fix returned buffer size of GetFirmwareVersion (#2029) --- Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs b/Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs index d19a53454..1e1054bd7 100644 --- a/Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs +++ b/Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs @@ -30,7 +30,8 @@ namespace Ryujinx.HLE.HOS.Services.Settings public ResultCode GetFirmwareVersion2(ServiceCtx context) { long replyPos = context.Request.RecvListBuff[0].Position; - long replySize = context.Request.RecvListBuff[0].Size; + + context.Response.PtrBuff[0] = context.Response.PtrBuff[0].WithSize(0x100L); byte[] firmwareData = GetFirmwareData(context.Device);