mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-05 09:02:15 +02:00
sm: fix query registration offset bug
This commit is contained in:
parent
0f686843ce
commit
463456e22c
@ -567,7 +567,7 @@ void Registration::QueryRegistrations(u64 offset, ServiceRecord *out, u64 *count
|
|||||||
u64 space = *count;
|
u64 space = *count;
|
||||||
*count = 0;
|
*count = 0;
|
||||||
|
|
||||||
for(auto i = g_service_list.begin() + offset; i < g_service_list.end() && space > 0; i++) {
|
for(auto i = g_service_list.begin(); i < g_service_list.end() && space > 0; i++) {
|
||||||
if(i->service_name != 0) {
|
if(i->service_name != 0) {
|
||||||
if(offset > 0) {
|
if(offset > 0) {
|
||||||
offset--;
|
offset--;
|
||||||
|
Loading…
Reference in New Issue
Block a user