From 463456e22c18ab6b448dfe38ad4613bd3bace319 Mon Sep 17 00:00:00 2001 From: misson20000 Date: Thu, 20 Dec 2018 16:38:06 -0800 Subject: [PATCH] sm: fix query registration offset bug --- stratosphere/sm/source/sm_registration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stratosphere/sm/source/sm_registration.cpp b/stratosphere/sm/source/sm_registration.cpp index 839f561a5..dec0fc2a0 100644 --- a/stratosphere/sm/source/sm_registration.cpp +++ b/stratosphere/sm/source/sm_registration.cpp @@ -567,7 +567,7 @@ void Registration::QueryRegistrations(u64 offset, ServiceRecord *out, u64 *count u64 space = *count; *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(offset > 0) { offset--;