Author: tfaber
Date: Sun Jun 14 08:03:15 2015
New Revision: 68132
URL:
http://svn.reactos.org/svn/reactos?rev=68132&view=rev
Log:
[MSAFD]
- Fix error mapping for STATUS_INVALID_CONNECTION
CORE-9810 CORE-9807 #resolve
Modified:
trunk/reactos/dll/win32/msafd/misc/dllmain.c
Modified: trunk/reactos/dll/win32/msafd/misc/dllmain.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msafd/misc/dllma…
==============================================================================
--- trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Sun Jun 14 08:03:15 2015
@@ -341,6 +341,9 @@
return WSAENOBUFS;
case STATUS_INVALID_CONNECTION:
+ return WSAENOTCONN;
+
+ case STATUS_PROTOCOL_NOT_SUPPORTED:
return WSAEAFNOSUPPORT;
case STATUS_INVALID_ADDRESS:
@@ -1375,7 +1378,7 @@
{
NtClose(SockEvent);
WSPCloseSocket( AcceptSocket, lpErrno );
- MsafdReturnWithErrno( STATUS_INVALID_CONNECTION, lpErrno, 0, NULL );
+ MsafdReturnWithErrno( STATUS_PROTOCOL_NOT_SUPPORTED, lpErrno, 0, NULL );
return INVALID_SOCKET;
}