diff options
Diffstat (limited to 'protocols/YAMN/src/proto/netlib.cpp')
-rw-r--r-- | protocols/YAMN/src/proto/netlib.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/YAMN/src/proto/netlib.cpp b/protocols/YAMN/src/proto/netlib.cpp index 02fb6d3cdc..507b9b4051 100644 --- a/protocols/YAMN/src/proto/netlib.cpp +++ b/protocols/YAMN/src/proto/netlib.cpp @@ -92,11 +92,9 @@ void CNLClient::Connect(const char* servername, const int port) throw(DWORD) DebugLog(CommFile, "<connect>\n"); #endif try { - NETLIBOPENCONNECTION nloc; - nloc.cbSize = sizeof(NETLIBOPENCONNECTION); + NETLIBOPENCONNECTION nloc = {}; nloc.szHost = servername; nloc.wPort = port; - nloc.flags = 0; if (nullptr == (hConnection = Netlib_OpenConnection(hNetlibUser, &nloc))) { SystemError = WSAGetLastError(); throw NetworkError = (DWORD)ENL_CONNECT; |