summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-19 00:49:19 +0200
committerLioncash <mathew1800@gmail.com>2019-05-19 00:50:04 +0200
commit88c263ee8e7c449ef00dc9029874ddfb3f14812f (patch)
treeac3403e5c4f26b6df92d9c8983493053a8dfd60e /src
parentMerge pull request #2462 from lioncash/video-mm (diff)
downloadyuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar.gz
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar.bz2
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar.lz
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar.xz
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.tar.zst
yuzu-88c263ee8e7c449ef00dc9029874ddfb3f14812f.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/am.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 26a665bfd..6751a9d9d 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -835,6 +835,7 @@ void IStorageAccessor::Write(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ERR_SIZE_OUT_OF_BOUNDS);
+ return;
}
std::memcpy(backing.buffer.data() + offset, data.data(), data.size());
@@ -857,6 +858,7 @@ void IStorageAccessor::Read(Kernel::HLERequestContext& ctx) {
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ERR_SIZE_OUT_OF_BOUNDS);
+ return;
}
ctx.WriteBuffer(backing.buffer.data() + offset, size);