1
0
Fork 0
forked from suyu/suyu

Merge pull request #1434 from DarkLordZach/dlc-edge-case

aoc_u: Fix edge case with DLC that causes breaks
This commit is contained in:
bunnei 2018-10-03 21:39:23 -04:00 committed by GitHub
commit cf3a6dd4a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) {
out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF)); out.push_back(static_cast<u32>(add_on_content[i] & 0x7FF));
} }
if (out.size() <= offset) { if (out.size() < offset) {
IPC::ResponseBuilder rb{ctx, 2}; IPC::ResponseBuilder rb{ctx, 2};
// TODO(DarkLordZach): Find the correct error code. // TODO(DarkLordZach): Find the correct error code.
rb.Push(ResultCode(-1)); rb.Push(ResultCode(-1));