mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibCore: Return EBADF
on unsupported stream operations
This commit is contained in:
parent
e65767c2e7
commit
1ca62de558
Notes:
sideshowbarker
2024-07-17 01:31:54 +09:00
Author: https://github.com/timschumi
Commit: 1ca62de558
Pull-request: https://github.com/SerenityOS/serenity/pull/17058
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/gmta ✅
6 changed files with 9 additions and 8 deletions
|
@ -302,7 +302,7 @@ bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_re
|
|||
|
||||
ErrorOr<size_t> DeflateDecompressor::write(ReadonlyBytes)
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
return Error::from_errno(EBADF);
|
||||
}
|
||||
|
||||
bool DeflateDecompressor::is_open() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue