1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09: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:
R-Goc 2025-05-10 15:17:58 +02:00 committed by Tim Flynn
parent 29ac95a3e2
commit 7cccdb3bcf
Notes: github-actions[bot] 2025-05-10 15:26:15 +00:00

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
{