mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
29ac95a3e2
commit
7cccdb3bcf
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user