ncm: fix abort in ListContentMetaInfo

This commit is contained in:
Michael Scire 2020-11-29 19:00:15 -08:00
parent 77d7e6b121
commit fd7e4dfb97

View file

@ -381,7 +381,7 @@ namespace ams::ncm {
/* Read content meta infos from the given offset up to the given 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);
}