1
0
Fork 0
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:
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. */ /* 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);
} }