mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-08 17:50:31 +01:00
kernel: implement sys_get_authinfo for pid > 0
This commit is contained in:
parent
2551966931
commit
b32b4e1c60
|
|
@ -786,7 +786,12 @@ orbis::SysResult orbis::sys_dmem_container(Thread *thread, uint id) {
|
|||
}
|
||||
orbis::SysResult orbis::sys_get_authinfo(Thread *thread, pid_t pid,
|
||||
ptr<AuthInfo> info) {
|
||||
return uwrite(info, thread->tproc->authInfo);
|
||||
|
||||
auto process = pid > 0 ? g_context.findProcessById(pid) : thread->tproc;
|
||||
if (process == nullptr) {
|
||||
return ErrorCode::SRCH;
|
||||
}
|
||||
return uwrite(info, process->authInfo);
|
||||
}
|
||||
orbis::SysResult orbis::sys_mname(Thread *thread, uint64_t addr, uint64_t len,
|
||||
ptr<const char[32]> name) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue