mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-09-20 09:16:15 +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:
parent
799f8dcd46
commit
4b98a79997
@ -325,6 +325,7 @@ g_io_error_from_win32_error (gint error_code)
|
|||||||
return G_IO_ERROR_NOT_SUPPORTED;
|
return G_IO_ERROR_NOT_SUPPORTED;
|
||||||
|
|
||||||
case WSAECONNRESET:
|
case WSAECONNRESET:
|
||||||
|
case WSAESHUTDOWN:
|
||||||
return G_IO_ERROR_CONNECTION_CLOSED;
|
return G_IO_ERROR_CONNECTION_CLOSED;
|
||||||
|
|
||||||
case WSAEHOSTUNREACH:
|
case WSAEHOSTUNREACH:
|
||||||
|
Loading…
Reference in New Issue
Block a user