mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-08 13:11:49 +00:00
ncm: fix abort in ListContentMetaInfo
This commit is contained in:
parent
77d7e6b121
commit
fd7e4dfb97
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ namespace ams::ncm {
|
||||||
|
|
||||||
/* Read content meta infos from the given offset up to the given count. */
|
/* Read content meta infos from the given offset up to the given count. */
|
||||||
size_t count;
|
size_t count;
|
||||||
for (count = 0; count < out_meta_info.GetSize() && count + offset <= reader.GetContentMetaCount(); count++) {
|
for (count = 0; count < out_meta_info.GetSize() && count + offset < reader.GetContentMetaCount(); count++) {
|
||||||
out_meta_info[count] = *reader.GetContentMetaInfo(count + offset);
|
out_meta_info[count] = *reader.GetContentMetaInfo(count + offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue