summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2019-05-19 15:59:40 +0200
committerGitHub <noreply@github.com>2019-05-19 15:59:40 +0200
commit3ff0c70c72e5ea97feb3f9472410079ac1de087a (patch)
treecb4891d203c23333fc4e3a13b9854d340ca7d044
parentMerge pull request #2480 from ReinUsesLisp/fix-quads (diff)
parentservice/am: Add missing return in error case for IStorageAccessor's Read()/Write(). (diff)
downloadyuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar.gz
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar.bz2
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar.lz
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar.xz
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.tar.zst
yuzu-3ff0c70c72e5ea97feb3f9472410079ac1de087a.zip
-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 1cd62482e..1a32a109f 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);