summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/FileManager.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-07 14:46:11 +0200
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-05-07 14:47:44 +0200
commite80b274a23cb6bbe83bc48058c779624b16dd556 (patch)
tree905578ee29d9c5bad03b28b8381a2c29fb715f0f /Private/KernelKit/FileManager.hpp
parentc4f3bfd671ad8ec5721c3d2c45de4806f34ebb75 (diff)
MHR-23: ErrorID error codes are now deprecated in favor of HError.
- Cleanup done in SystemLib. - Refactor system API. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/KernelKit/FileManager.hpp')
-rw-r--r--Private/KernelKit/FileManager.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Private/KernelKit/FileManager.hpp b/Private/KernelKit/FileManager.hpp
index 142e1afd..7da08cbb 100644
--- a/Private/KernelKit/FileManager.hpp
+++ b/Private/KernelKit/FileManager.hpp
@@ -20,7 +20,6 @@
#include <CompilerKit/CompilerKit.hxx>
#include <HintKit/CompilerHint.hxx>
-#include <NewKit/ErrorID.hpp>
#include <NewKit/Ref.hpp>
#include <NewKit/Stream.hpp>
@@ -159,7 +158,7 @@ namespace NewOS
ErrorOr<Int64> WriteAll(const VoidPtr data) noexcept
{
if (data == nullptr)
- return ErrorOr<Int64>(H_INVALID_DATA);
+ return ErrorOr<Int64>(kErrorInvalidData);
auto man = FSClass::GetMounted();
@@ -169,7 +168,7 @@ namespace NewOS
return ErrorOr<Int64>(0);
}
- return ErrorOr<Int64>(H_INVALID_DATA);
+ return ErrorOr<Int64>(kErrorInvalidData);
}
VoidPtr Read() noexcept