summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-03 21:39:23 -0400
committerGravatar GitHub2018-10-03 21:39:23 -0400
commitcf3a6dd4a175cfc18a856b071ceff9c5e4833eca (patch)
treefdab4b723ae3bb828d723736dba5f4c15c88e03d /src
parentMerge pull request #1428 from lioncash/qt (diff)
parentaoc_u: Fix edge case with DLC that causes breaks (diff)
downloadyuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.gz
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.tar.xz
yuzu-cf3a6dd4a175cfc18a856b071ceff9c5e4833eca.zip
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 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) {
84 out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF)); 84 out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF));
85 } 85 }
86 86
87 if (out.size() <= offset) { 87 if (out.size() < offset) {
88 IPC::ResponseBuilder rb{ctx, 2}; 88 IPC::ResponseBuilder rb{ctx, 2};
89 // TODO(DarkLordZach): Find the correct error code. 89 // TODO(DarkLordZach): Find the correct error code.
90 rb.Push(ResultCode(-1)); 90 rb.Push(ResultCode(-1));