mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-09-20 22:13:24 +01:00
kern: fix GetProcessId wrong result on invalid parameter
This commit is contained in:
parent
ff7a80e592
commit
1f8798ace7
|
@ -63,6 +63,8 @@ namespace ams::kern::svc {
|
||||||
|
|
||||||
/* Get the process id. */
|
/* Get the process id. */
|
||||||
*out_process_id = d->GetProcessUnsafe()->GetProcessId();
|
*out_process_id = d->GetProcessUnsafe()->GetProcessId();
|
||||||
|
} else {
|
||||||
|
R_THROW(svc::ResultInvalidHandle());
|
||||||
}
|
}
|
||||||
|
|
||||||
R_SUCCEED();
|
R_SUCCEED();
|
||||||
|
|
Loading…
Reference in a new issue