From 142c2b6cfe716e27ecdb4d4d5bc77e374a2b1293 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Fri, 6 Jul 2018 10:49:13 -0700 Subject: [PATCH] am: Correct content index bounds in ListDLCContentInfos. --- src/core/hle/service/am/am.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index ef38540ecc..e20587b6aa 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -589,7 +589,7 @@ void Module::Interface::ListDLCContentInfos(Kernel::HLERequestContext& ctx) { if (tmd.Load(tmd_path) == Loader::ResultStatus::Success) { copied = std::min(content_count, static_cast(tmd.GetContentCount())); std::size_t write_offset = 0; - for (u32 i = start_index; i < copied; i++) { + for (u32 i = start_index; i < start_index + copied; i++) { std::shared_ptr romfs_file; u64 romfs_offset = 0;