aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-03 21:39:23 -0400
committerGitHub <noreply@github.com>2018-10-03 21:39:23 -0400
commit9d1c5eb6617ac1261baae4eb89edde1307746f32 (patch)
treefdab4b723ae3bb828d723736dba5f4c15c88e03d /src
parent0b30509b9a5d0e1b7b299e43cfb3ef25a53ff821 (diff)
parent1995df45b151ff22c15a7cbcefad43530f4106d3 (diff)
Merge pull request #1434 from DarkLordZach/dlc-edge-case
aoc_u: Fix edge case with DLC that causes breaks
Diffstat (limited to 'src')
-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 cfc28fa0c5..79580bcd99 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));