fix an incorrect if-clause in net.cpp

This commit is contained in:
Philip Kaufmann
2012-05-08 23:02:48 +02:00
committed by Luke Dashjr
parent a0ea95d3ce
commit af413c0a0f

View File

@@ -868,7 +868,7 @@ void ThreadSocketHandler2(void* parg)
if (nSelect == SOCKET_ERROR)
{
int nErr = WSAGetLastError();
if (hSocketMax > -1)
if (hSocketMax != INVALID_SOCKET)
{
printf("socket select error %d\n", nErr);
for (unsigned int i = 0; i <= hSocketMax; i++)