diff --git a/src/xpdev/netwrap.c b/src/xpdev/netwrap.c index c1ea24c383f9e73eb27698e96012e7b52b9a51ff..ff04c6f3043b4968753ac455c61c5d7045bc01d7 100644 --- a/src/xpdev/netwrap.c +++ b/src/xpdev/netwrap.c @@ -111,7 +111,9 @@ const char* getHostNameByAddr(const char* str) if((h=gethostbyaddr((char *)&ip,sizeof(ip),AF_INET))==NULL) return NULL; +#ifdef _WIN32 WSACleanup(); +#endif return h->h_name; }