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

This commit is contained in:
Ac_K 2021-02-17 21:10:53 +01:00 committed by GitHub
parent 9d82d27df2
commit c6d3c4207a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);