From 9285e189c159958403320560d0ea3a4af33353de Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Fri, 16 Jun 2017 11:30:16 +0200 Subject: [PATCH] Enable translation of WSEACCESS (10013) on mobile (#5050) This error can occur on mobile devices during network operations as evidenced in https://bugzilla.xamarin.com/show_bug.cgi?id=56653 and having an actual description of the error printed in this case makes it easier for the user to discover what's going on. --- mcs/class/System/ReferenceSources/Win32Exception.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System/ReferenceSources/Win32Exception.cs b/mcs/class/System/ReferenceSources/Win32Exception.cs index fe514b868d2..f80d759f63d 100644 --- a/mcs/class/System/ReferenceSources/Win32Exception.cs +++ b/mcs/class/System/ReferenceSources/Win32Exception.cs @@ -56,6 +56,7 @@ namespace System.ComponentModel case 6000: /* ERROR_ENCRYPTION_FAILED */ return "Encryption failed"; case 10004: /* WSAEINTR */ return "interrupted"; case 10009: /* WSAEBADF */ return "Bad file number"; + case 10013: /* WSAEACCES */ return "Access denied"; case 10014: /* WSAEFAULT */ return "Bad address"; case 10022: /* WSAEINVAL */ return "Invalid arguments"; case 10024: /* WSAEMFILE */ return "Too many open files"; @@ -1600,7 +1601,6 @@ namespace System.ComponentModel case 9904: /* DNS_ERROR_DP_ALREADY_ENLISTED */ return "DNS error dp already enlisted"; case 10110: /* WSA_E_NO_MORE */ return "E_NO_MORE"; case 10111: /* WSA_E_CANCELLED */ return "E_CANCELLED"; - case 10013: /* WSAEACCES */ return "Access denied"; case 11005: /* WSA_QOS_RECEIVERS */ return "QOS receivers"; case 11006: /* WSA_QOS_SENDERS */ return "QOS senders"; case 11007: /* WSA_QOS_NO_SENDERS */ return "QOS no senders"; -- 2.25.1