Author: phater
Date: Fri May 26 13:44:01 2017
New Revision: 74670
URL:
http://svn.reactos.org/svn/reactos?rev=74670&view=rev
Log:
[WS2_32] Revert r74669
Modified:
trunk/reactos/dll/win32/ws2_32/src/socklife.c
Modified: trunk/reactos/dll/win32/ws2_32/src/socklife.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/src/sockl…
==============================================================================
--- trunk/reactos/dll/win32/ws2_32/src/socklife.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ws2_32/src/socklife.c [iso-8859-1] Fri May 26 13:44:01 2017
@@ -59,11 +59,7 @@
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 @@
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 @@
}
/* Return */
- SetLastError(ErrorCode);
return Status;
}
}
@@ -430,7 +421,6 @@
}
/* Return */
- SetLastError(ErrorCode);
return Status;
}
}
@@ -592,7 +582,6 @@
{
/* Add an API reference and return */
WsSockAddApiReference(Status);
- SetLastError(ErrorCode);
return Status;
}
}