[glib] gioerror: make WSAESHUTDOWN an alias of	G_IO_ERROR_CONNECTION_CLOSED
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [glib] gioerror: make WSAESHUTDOWN an alias of	G_IO_ERROR_CONNECTION_CLOSED
- Date: Wed,  7 Dec 2016 07:51:28 +0000 (UTC)
commit 4b98a799978d42e0b528d86e015c8a4251a22b0a
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date:   Mon Dec 5 18:25:52 2016 +0100
    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.
 gio/gioerror.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gioerror.c b/gio/gioerror.c
index c2efa20..ed80c6e 100644
--- a/gio/gioerror.c
+++ b/gio/gioerror.c
@@ -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:
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]