Pārlūkot izejas kodu

Kernel: Fix my result propagation bug @BenWiederhake spotted

In #3001 I was trying to fix result propagation issues, and
I actually just introduced another one. Luckily Ben spotted
it in the diff after it was in the tree, thanks Ben!
Brian Gianforcaro 5 gadi atpakaļ
vecāks
revīzija
fe64d97001
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Kernel/FileSystem/FileDescription.cpp

+ 1 - 1
Kernel/FileSystem/FileDescription.cpp

@@ -197,7 +197,7 @@ ssize_t FileDescription::get_dir_entries(u8* buffer, ssize_t size)
     });
 
     if (result.is_error())
-        result.error();
+        return result;
 
     stream.snip();