fix windows screaming

This commit is contained in:
lizzie
2026-07-02 07:50:36 +00:00
parent 7fd81bb9f4
commit d73bc5ba9e
2 changed files with 6 additions and 4 deletions
+4
View File
@@ -525,7 +525,11 @@ std::pair<s32, Network::Errno> BSD::SocketImpl(Network::Domain domain, Network::
}
auto const bsd_errno = descriptor.socket->Initialize(domain, type, protocol);
descriptor.is_connection_based = IsConnectionBased(type);
#ifdef _WIN32
if (descriptor.socket->fd == INVALID_SOCKET) {
#else
if (descriptor.socket->fd == Network::Socket::INVALID_SOCKET) {
#endif
file_descriptors[fd].reset();
return {-1, bsd_errno};
}