Allow XamUserReadProfileSettings to use xuid to define profile

This commit is contained in:
Gliniak
2022-04-15 09:28:42 +02:00
parent 84e5b159c3
commit dde8adc140
4 changed files with 42 additions and 10 deletions

View File

@@ -960,7 +960,7 @@ uint8_t KernelState::GetConnectedUsers() const {
void KernelState::UpdateUsedUserProfiles() {
const uint8_t used_slots_bitmask = GetConnectedUsers();
for (uint8_t i = 1; i < 4; i++) {
for (uint32_t i = 1; i < 4; i++) {
bool is_used = used_slots_bitmask & (1 << i);
if (IsUserSignedIn(i) && !is_used) {