This commit is contained in:
apio 2022-10-28 19:38:04 +02:00
parent b8296eb92d
commit a2d9ada4dc

View File

@ -311,7 +311,7 @@ void sys_close(Context* context, int fd)
{ {
int err; int err;
Descriptor* file = Scheduler::current_task()->descriptor_from_fd(fd, err); Descriptor* file = Scheduler::current_task()->descriptor_from_fd(fd, err);
if (!err) if (!file)
{ {
context->rax = -err; context->rax = -err;
return; return;