From 5c6f0fc14c13d6208661de5f73ccb461b62cae6d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 8 May 2018 03:02:57 -0600 Subject: [PATCH] SM: Match official SAC validation behavior. --- 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 bd76bce87..89636b8e9 100644 --- a/stratosphere/sm/source/sm_registration.cpp +++ b/stratosphere/sm/source/sm_registration.cpp @@ -75,7 +75,7 @@ bool Registration::IsValidForSac(u8 *sac, size_t sac_size, u64 service, bool is_ cur_service &= mask; service_for_compare &= mask; } - if (cur_service == service_for_compare && (!is_host || cur_is_host)) { + if (cur_service == service_for_compare && (is_host == cur_is_host)) { return true; } sac += cur_size;