summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 19:42:32 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 23:04:02 +0100
commit7ffd62424804eceb73f01b1c4e8dc216134c8295 (patch)
tree2bfe2a9b5d0a3f0857c73475cbdf24f6fe66c740 /src/core/hle/service/am
parentfsp_srv: Use ReadBufferSpan (diff)
downloadyuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.gz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.bz2
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.lz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.xz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.zst
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.zip
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r--src/core/hle/service/am/am.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 22999c942..958e40648 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1124,7 +1124,7 @@ void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 offset{rp.Pop<u64>()};
- const std::vector<u8> data{ctx.ReadBuffer()};
+ const auto data{ctx.ReadBufferSpan()};
const std::size_t size{std::min<u64>(data.size(), backing.GetSize() - offset)};
LOG_DEBUG(Service_AM, "called, offset={}, size={}", offset, size);