am: Correct content index bounds in ListDLCContentInfos.
This commit is contained in:
parent
c1ef7a753a
commit
142c2b6cfe
@ -589,7 +589,7 @@ void Module::Interface::ListDLCContentInfos(Kernel::HLERequestContext& ctx) {
|
|||||||
if (tmd.Load(tmd_path) == Loader::ResultStatus::Success) {
|
if (tmd.Load(tmd_path) == Loader::ResultStatus::Success) {
|
||||||
copied = std::min(content_count, static_cast<u32>(tmd.GetContentCount()));
|
copied = std::min(content_count, static_cast<u32>(tmd.GetContentCount()));
|
||||||
std::size_t write_offset = 0;
|
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<FileUtil::IOFile> romfs_file;
|
std::shared_ptr<FileUtil::IOFile> romfs_file;
|
||||||
u64 romfs_offset = 0;
|
u64 romfs_offset = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user