mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 13:06:14 +01: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:
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:
|
||||
|
Loading…
Reference in New Issue
Block a user