Fix bug with has_handle

This commit is contained in:
Baptiste Wicht 2014-02-13 21:06:52 +01:00
parent df67d48660
commit 3f08e7b31f

View File

@ -820,7 +820,7 @@ void scheduler::release_handle(size_t fd){
bool scheduler::has_handle(size_t fd){
if(fd < pcb[current_pid].handles.size()){
return pcb[current_pid].handles[fd].empty();
return !pcb[current_pid].handles[fd].empty();
}
return false;