mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-02-09 19:25:10 +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. */
|
||||
*out_process_id = d->GetProcessUnsafe()->GetProcessId();
|
||||
} else {
|
||||
R_THROW(svc::ResultInvalidHandle());
|
||||
}
|
||||
|
||||
R_SUCCEED();
|
||||
|
Loading…
x
Reference in New Issue
Block a user