mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 21:58:10 +00:00
[MSAFD]
- Fix error mapping for STATUS_INVALID_CONNECTION CORE-9810 CORE-9807 #resolve svn path=/trunk/; revision=68132
This commit is contained in:
parent
e2985287b0
commit
9c0c299bb9
|
@ -341,6 +341,9 @@ TranslateNtStatusError(NTSTATUS Status)
|
|||
return WSAENOBUFS;
|
||||
|
||||
case STATUS_INVALID_CONNECTION:
|
||||
return WSAENOTCONN;
|
||||
|
||||
case STATUS_PROTOCOL_NOT_SUPPORTED:
|
||||
return WSAEAFNOSUPPORT;
|
||||
|
||||
case STATUS_INVALID_ADDRESS:
|
||||
|
@ -1375,7 +1378,7 @@ WSPAccept(SOCKET Handle,
|
|||
{
|
||||
NtClose(SockEvent);
|
||||
WSPCloseSocket( AcceptSocket, lpErrno );
|
||||
MsafdReturnWithErrno( STATUS_INVALID_CONNECTION, lpErrno, 0, NULL );
|
||||
MsafdReturnWithErrno( STATUS_PROTOCOL_NOT_SUPPORTED, lpErrno, 0, NULL );
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue