瀏覽代碼

settings: Fix returned buffer size of GetFirmwareVersion (#2029)

Ac_K 5 年之前
父節點
當前提交
c6d3c4207a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Ryujinx.HLE/HOS/Services/Settings/ISystemSettingsServer.cs

+ 2 - 1
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);