[User/XAM] Oops, fix null pointer deref
This commit is contained in:
parent
be410a9cab
commit
e2e5205b24
|
@ -866,6 +866,9 @@ xam::UserProfile* KernelState::user_profile(uint32_t user_index,
|
||||||
}
|
}
|
||||||
|
|
||||||
auto user = &user_profiles_[user_index];
|
auto user = &user_profiles_[user_index];
|
||||||
|
if (!user->get()) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
if (!allow_signed_out) {
|
if (!allow_signed_out) {
|
||||||
if (!user->get()->signed_in()) {
|
if (!user->get()->signed_in()) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue