ImageDecoder: Port to Windows

This commit is contained in:
stasoid 2024-12-17 09:26:22 +05:00 committed by Andrew Kaster
commit 778947213b
Notes: github-actions[bot] 2025-02-14 16:40:05 +00:00
3 changed files with 5 additions and 3 deletions

View file

@ -57,8 +57,8 @@ ErrorOr<IPC::File> ConnectionFromClient::connect_new_client()
auto client_socket_or_error = Core::LocalSocket::adopt_fd(socket_fds[0]);
if (client_socket_or_error.is_error()) {
close(socket_fds[0]);
close(socket_fds[1]);
(void)Core::System::close(socket_fds[0]);
(void)Core::System::close(socket_fds[1]);
return client_socket_or_error.release_error();
}