diff options
author | George Hazan <ghazan@miranda.im> | 2022-05-07 15:00:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-05-07 15:00:02 +0300 |
commit | c4ffab658f422e84259a0a9769f0003b33a013bd (patch) | |
tree | 667448a4911b47f72acbb82a0142e13ddefb3b6d /protocols/YAMN/src | |
parent | fd1ca33248519ee530d1d05c6a451c9c63bf4e8a (diff) |
Netlib_OpenConnection - finally old stupid structure NETLIBOPENCONNECTION died and converted into a set of parameters + code cleaning
Diffstat (limited to 'protocols/YAMN/src')
-rw-r--r-- | protocols/YAMN/src/proto/netlib.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/YAMN/src/proto/netlib.cpp b/protocols/YAMN/src/proto/netlib.cpp index 34366fa734..29222dd980 100644 --- a/protocols/YAMN/src/proto/netlib.cpp +++ b/protocols/YAMN/src/proto/netlib.cpp @@ -88,10 +88,7 @@ void CNLClient::Connect(const char* servername, const int port) throw(DWORD) DebugLog(CommFile, "<connect>\n"); #endif try { - NETLIBOPENCONNECTION nloc = {}; - nloc.szHost = servername; - nloc.wPort = port; - if (nullptr == (hConnection = Netlib_OpenConnection(hNetlibUser, &nloc))) { + if (nullptr == (hConnection = Netlib_OpenConnection(hNetlibUser, servername, port))) { SystemError = WSAGetLastError(); throw NetworkError = (uint32_t)ENL_CONNECT; } |