mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 23:43:39 +02:00
gioerror: make WSAESHUTDOWN an alias of G_IO_ERROR_CONNECTION_CLOSED
This fixes one of the assertions of the socket unit tests where G_IO_ERROR_FAILED was returned instead of G_IO_ERROR_CONNECTION_CLOSED.
This commit is contained in:
committed by
Ignacio Casal Quinteiro
parent
799f8dcd46
commit
4b98a79997
@@ -325,6 +325,7 @@ g_io_error_from_win32_error (gint error_code)
|
||||
return G_IO_ERROR_NOT_SUPPORTED;
|
||||
|
||||
case WSAECONNRESET:
|
||||
case WSAESHUTDOWN:
|
||||
return G_IO_ERROR_CONNECTION_CLOSED;
|
||||
|
||||
case WSAEHOSTUNREACH:
|
||||
|
Reference in New Issue
Block a user