Several fixes to correctly use SOCKET (and related) types instead of non-portable variations.

This commit is contained in:
Iain Denniston
2011-03-18 12:09:33 +00:00
committed by Marcelo Roberto Jimenez
parent 8eb7d1c1a5
commit fed316ff3e
8 changed files with 23 additions and 19 deletions

View File

@@ -74,7 +74,7 @@ static UPNP_INLINE int sock_close(
{
int ret = -1;
if (sock != -1)
if (sock != INVALID_SOCKET)
ret = UpnpCloseSocket(sock);
return ret;