[MSAFD] Fix some error translations by Peter Hater. CORE-7487
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 4 Oct 2016 18:36:00 +0000 (18:36 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 4 Oct 2016 18:36:00 +0000 (18:36 +0000)
svn path=/trunk/; revision=72904

reactos/dll/win32/msafd/misc/dllmain.c

index f715484..0e9177a 100644 (file)
@@ -347,6 +347,8 @@ TranslateNtStatusError(NTSTATUS Status)
           return NO_ERROR;
 
        case STATUS_FILE_CLOSED:
+         return WSAECONNRESET;
+
        case STATUS_END_OF_FILE:
           return WSAESHUTDOWN;
 
@@ -371,6 +373,7 @@ TranslateNtStatusError(NTSTATUS Status)
           return WSAEADDRNOTAVAIL;
 
        case STATUS_REMOTE_NOT_LISTENING:
+       case STATUS_REMOTE_DISCONNECT:
           return WSAECONNREFUSED;
 
        case STATUS_NETWORK_UNREACHABLE:
@@ -388,9 +391,6 @@ TranslateNtStatusError(NTSTATUS Status)
        case STATUS_LOCAL_DISCONNECT:
           return WSAECONNABORTED;
 
-       case STATUS_REMOTE_DISCONNECT:
-          return WSAECONNRESET;
-
        case STATUS_ACCESS_VIOLATION:
           return WSAEFAULT;