diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 15:59:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 15:59:40 +0200 |
commit | 3ff0c70c72e5ea97feb3f9472410079ac1de087a (patch) | |
tree | cb4891d203c23333fc4e3a13b9854d340ca7d044 | |
parent | Merge pull request #2480 from ReinUsesLisp/fix-quads (diff) | |
parent | service/am: Add missing return in error case for IStorageAccessor's Read()/Write(). (diff) | |
download | yuzu-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.cpp | 2 |
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); |