From 9fedfbe141715f75719339724cc6a0aa7875145c Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 3 Jun 2018 14:21:05 -0400 Subject: [PATCH] am: Cleanup IStorageAccessor::Read. --- src/core/hle/service/am/am.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 9434512d84..26fd8c933e 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -418,19 +418,17 @@ private: void Read(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; - u64 offset = rp.Pop(); - + const u64 offset{rp.Pop()}; const size_t size{ctx.GetWriteBufferSize()}; ASSERT(offset + size <= buffer.size()); ctx.WriteBuffer(buffer.data() + offset, size); - IPC::ResponseBuilder rb{ctx, 2}; - + IPC::ResponseBuilder rb{rp.MakeBuilder(2, 0, 0)}; rb.Push(RESULT_SUCCESS); - NGLOG_DEBUG(Service_AM, "called"); + NGLOG_DEBUG(Service_AM, "called, offset={}", offset); } };