diff --git a/Kernel/KResult.h b/Kernel/KResult.h index 9e6f6f6ed01..a5959cf1262 100644 --- a/Kernel/KResult.h +++ b/Kernel/KResult.h @@ -19,6 +19,7 @@ public: { } operator int() const { return m_error; } + int error() const { return m_error; } bool is_success() const { return m_error == ESUCCESS; } bool is_error() const { return !is_success(); }