aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
index 32a5950d..966e4596 100644
--- a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
+++ b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
@@ -95,7 +95,9 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
return ResultCode.InvalidBufferSize;
}
- byte[] inputBuffer = context.Memory.ReadBytes(inputPosition, inputSize);
+ byte[] inputBuffer = new byte[inputSize];
+
+ context.Memory.Read((ulong)inputPosition, inputBuffer);
Logger.PrintInfo(LogClass.ServicePrepo, ReadReportBuffer(inputBuffer, gameRoom, userId));