mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:05:45 +00:00
[WS2_32] Revert r74669
svn path=/trunk/; revision=74670
This commit is contained in:
parent
c43028c6ab
commit
44162f7bd9
1 changed files with 2 additions and 13 deletions
|
@ -59,11 +59,7 @@ bind(IN SOCKET s,
|
||||||
WsSockDereference(Socket);
|
WsSockDereference(Socket);
|
||||||
|
|
||||||
/* Return Provider Value */
|
/* Return Provider Value */
|
||||||
if (Status == ERROR_SUCCESS)
|
if (Status == ERROR_SUCCESS) return Status;
|
||||||
{
|
|
||||||
SetLastError(ErrorCode);
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If everything seemed fine, then the WSP call failed itself */
|
/* If everything seemed fine, then the WSP call failed itself */
|
||||||
if (ErrorCode == NO_ERROR) ErrorCode = WSASYSCALLFAILURE;
|
if (ErrorCode == NO_ERROR) ErrorCode = WSASYSCALLFAILURE;
|
||||||
|
@ -124,11 +120,7 @@ closesocket(IN SOCKET s)
|
||||||
WsSockDereference(Socket);
|
WsSockDereference(Socket);
|
||||||
|
|
||||||
/* Return success if everything is OK */
|
/* Return success if everything is OK */
|
||||||
if (ErrorCode == ERROR_SUCCESS)
|
if (ErrorCode == ERROR_SUCCESS) return ErrorCode;
|
||||||
{
|
|
||||||
SetLastError(ErrorCode);
|
|
||||||
return ErrorCode;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -355,7 +347,6 @@ WSAAccept(IN SOCKET s,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return */
|
/* Return */
|
||||||
SetLastError(ErrorCode);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -430,7 +421,6 @@ WSAJoinLeaf(IN SOCKET s,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return */
|
/* Return */
|
||||||
SetLastError(ErrorCode);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -592,7 +582,6 @@ DoLookup:
|
||||||
{
|
{
|
||||||
/* Add an API reference and return */
|
/* Add an API reference and return */
|
||||||
WsSockAddApiReference(Status);
|
WsSockAddApiReference(Status);
|
||||||
SetLastError(ErrorCode);
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue