AK: Fix error is_errno

Previously the check for is_errno did not check if the error kind was
syscall, which also set errno so that behavior was incorrect.
This commit is contained in:
R-Goc 2025-05-10 15:17:58 +02:00 committed by Tim Flynn
parent 29ac95a3e2
commit 7cccdb3bcf

View File

@ -89,7 +89,7 @@ public:
int code() const { return m_code; }
bool is_errno() const
{
return m_kind == Kind::Errno;
return m_kind == Kind::Errno || m_kind == Kind::Syscall;
}
bool is_syscall() const
{