From 0db449bf70966941453cfbb8ec05fd430a96dc12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jul 2019 13:20:12 +0300 Subject: useless member NETLIBOPENCONNECTION::cbSize removed --- protocols/YAMN/src/proto/netlib.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols/YAMN/src/proto/netlib.cpp') 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, "\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; -- cgit v1.2.3