1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-09-19 21:43:29 +01:00

SM: Match official SAC validation behavior.

This commit is contained in:
Michael Scire 2018-05-08 03:02:57 -06:00
parent aa158dbb5a
commit 5c6f0fc14c

View file

@ -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;