mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-20 15:40:30 +01:00
[rpcsx-os] Disallow sys_close on fd 0
Hack, will be removed
This commit is contained in:
parent
665d74740a
commit
81c7920a73
|
|
@ -129,6 +129,9 @@ orbis::SysResult open(orbis::Thread *thread, orbis::ptr<const char> path,
|
|||
}
|
||||
|
||||
orbis::SysResult close(orbis::Thread *thread, orbis::sint fd) {
|
||||
if (fd == 0) {
|
||||
return {};
|
||||
}
|
||||
if (!thread->tproc->fileDescriptors.close(fd)) {
|
||||
return ErrorCode::BADF;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue