mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- attempt to fix WSAStartup error message on win32
This commit is contained in:
@@ -214,9 +214,9 @@ bool UPNP_Tools::enabledUPNP = false;
|
||||
return acErrorBuffer;
|
||||
}
|
||||
|
||||
Socket::SocketManager Socket::socketManager;
|
||||
//SocketManager Socket::socketManager;
|
||||
|
||||
Socket::SocketManager::SocketManager(){
|
||||
SocketManager::SocketManager() {
|
||||
WSADATA wsaData;
|
||||
WORD wVersionRequested = MAKEWORD(2, 0);
|
||||
WSAStartup(wVersionRequested, &wsaData);
|
||||
@@ -224,7 +224,7 @@ bool UPNP_Tools::enabledUPNP = false;
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"Winsock initialized.\n");
|
||||
}
|
||||
|
||||
Socket::SocketManager::~SocketManager(){
|
||||
SocketManager::~SocketManager() {
|
||||
WSACleanup();
|
||||
SystemFlags::OutputDebug(SystemFlags::debugNetwork,"Winsock cleanup complete.\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user