quick hack to get win32 QTV to compile again

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2159 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-04-05 04:42:08 +00:00
parent 2a1d816aed
commit 044771effe
1 changed files with 4 additions and 0 deletions

View File

@ -242,7 +242,11 @@ qboolean Net_ConnectToTCPServer(sv_t *qtv, char *ip)
if (connect(qtv->sourcesock, (struct sockaddr *)&qtv->serveraddress, sizeof(qtv->serveraddress)) == INVALID_SOCKET)
{
#ifdef _WIN32
if (qerrno != WSAEINPROGRESS)
#else
if (qerrno != EINPROGRESS)
#endif
{
closesocket(qtv->sourcesock);
qtv->sourcesock = INVALID_SOCKET;