GameAgent - list servers bugfix

This commit is contained in:
RocketersAlex 2016-04-12 04:03:25 +03:00
parent 1f1291d2bc
commit eeebba11dc

View File

@ -163,6 +163,14 @@ void _initializeWinsock(void)
return;
}
// start WSA
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
CPrintF("Error initializing winsock!\n");
_uninitWinsock();
return;
}
#endif
_wsaData = new WSADATA;
_socket = INVALID_SOCKET;
@ -172,14 +180,6 @@ void _initializeWinsock(void)
}
_szBuffer = new char[2050];
// start WSA
if(WSAStartup(MAKEWORD(2, 2), _wsaData) != 0) {
CPrintF("Error initializing winsock!\n");
_uninitWinsock();
return;
}
#endif
// get the host IP
hostent* phe;
if(!ga_bMSLegacy) {