[orbis-kernel] Fix sys_namedobj_delete+

This commit is contained in:
Ivan Chikish 2023-07-15 17:00:47 +03:00
parent 9ccf27ae2e
commit 3eb73b5534
4 changed files with 7 additions and 7 deletions

View file

@ -333,11 +333,9 @@ orbis::SysResult orbis::sys_namedobj_create(Thread *thread,
thread->retval[0] = id;
return {};
}
orbis::SysResult orbis::sys_namedobj_delete(Thread *thread, uint16_t id,
orbis::SysResult orbis::sys_namedobj_delete(Thread *thread, uint id,
uint16_t type) {
ORBIS_LOG_NOTICE(__FUNCTION__, id, type);
if (id == 0)
return ErrorCode::SRCH;
if (type < 0x101 || type > 0x104) {
if (type != 0x107)
ORBIS_LOG_ERROR(__FUNCTION__, id, type);