[User/XAM] Oops, fix null pointer deref

This commit is contained in:
emoose 2020-01-04 09:02:49 +00:00 committed by illusion
parent 203dcb28be
commit 8ec3407e4c
1 changed files with 3 additions and 0 deletions

View File

@ -866,6 +866,9 @@ xam::UserProfile* KernelState::user_profile(uint32_t user_index,
}
auto user = &user_profiles_[user_index];
if (!user->get()) {
return nullptr;
}
if (!allow_signed_out) {
if (!user->get()->signed_in()) {
return nullptr;