mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 04:11:18 +00:00
kern: fix GetProcessId wrong result on invalid parameter
This commit is contained in:
parent
ff7a80e592
commit
1f8798ace7
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue