mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 06:22:39 +02:00
kern: fix GetProcessId wrong result on invalid parameter
This commit is contained in:
parent
3cfac35c93
commit
9ca1336762
@ -63,6 +63,8 @@ namespace ams::kern::svc {
|
||||
|
||||
/* Get the process id. */
|
||||
*out_process_id = d->GetProcessUnsafe()->GetProcessId();
|
||||
} else {
|
||||
R_THROW(svc::ResultInvalidHandle());
|
||||
}
|
||||
|
||||
R_SUCCEED();
|
||||
|
Loading…
Reference in New Issue
Block a user