summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-04 03:39:23 +0200
committerGitHub <noreply@github.com>2018-10-04 03:39:23 +0200
commitcf3a6dd4a175cfc18a856b071ceff9c5e4833eca (patch)
treefdab4b723ae3bb828d723736dba5f4c15c88e03d /src/core/hle
parentMerge pull request #1428 from lioncash/qt (diff)
parentaoc_u: Fix edge case with DLC that causes breaks (diff)
downloadyuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.gz
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.bz2
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.lz
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.xz
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.zst
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index cfc28fa0c..79580bcd9 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -84,7 +84,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF));
}
- if (out.size() <= offset) {
+ if (out.size() < offset) {
IPC::ResponseBuilder rb{ctx, 2};
// TODO(DarkLordZach): Find the correct error code.
rb.Push(ResultCode(-1));