mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-11-27 05:10:53 +00:00
[orbis-kernel] fix sys_shm_unlink segv
This commit is contained in:
parent
56ed80c35f
commit
3a81827e9b
@ -30,13 +30,10 @@ orbis::SysResult orbis::sys_shm_unlink(Thread *thread, ptr<const char> path) {
|
||||
}
|
||||
|
||||
if (auto shm_unlink = thread->tproc->ops->shm_unlink) {
|
||||
Ref<File> file;
|
||||
auto result = shm_unlink(thread, path);
|
||||
if (result.isError()) {
|
||||
return result;
|
||||
}
|
||||
|
||||
thread->retval[0] = thread->tproc->fileDescriptors.insert(file);
|
||||
return {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user