mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-12-26 15:44:51 +01:00
GameAgent - list servers bugfix
This commit is contained in:
parent
1f1291d2bc
commit
eeebba11dc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user