From 44162f7bd97e8b0b5823dbe45a76ef6e93d99817 Mon Sep 17 00:00:00 2001 From: Peter Hater <7element@mail.bg> Date: Fri, 26 May 2017 13:44:01 +0000 Subject: [PATCH] [WS2_32] Revert r74669 svn path=/trunk/; revision=74670 --- reactos/dll/win32/ws2_32/src/socklife.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/reactos/dll/win32/ws2_32/src/socklife.c b/reactos/dll/win32/ws2_32/src/socklife.c index b53bb79231a..5b14364f550 100644 --- a/reactos/dll/win32/ws2_32/src/socklife.c +++ b/reactos/dll/win32/ws2_32/src/socklife.c @@ -59,11 +59,7 @@ bind(IN SOCKET s, WsSockDereference(Socket); /* Return Provider Value */ - if (Status == ERROR_SUCCESS) - { - SetLastError(ErrorCode); - return Status; - } + if (Status == ERROR_SUCCESS) return Status; /* If everything seemed fine, then the WSP call failed itself */ if (ErrorCode == NO_ERROR) ErrorCode = WSASYSCALLFAILURE; @@ -124,11 +120,7 @@ closesocket(IN SOCKET s) WsSockDereference(Socket); /* Return success if everything is OK */ - if (ErrorCode == ERROR_SUCCESS) - { - SetLastError(ErrorCode); - return ErrorCode; - } + if (ErrorCode == ERROR_SUCCESS) return ErrorCode; } } else @@ -355,7 +347,6 @@ WSAAccept(IN SOCKET s, } /* Return */ - SetLastError(ErrorCode); return Status; } } @@ -430,7 +421,6 @@ WSAJoinLeaf(IN SOCKET s, } /* Return */ - SetLastError(ErrorCode); return Status; } } @@ -592,7 +582,6 @@ DoLookup: { /* Add an API reference and return */ WsSockAddApiReference(Status); - SetLastError(ErrorCode); return Status; } } -- 2.17.1