diff options
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; } |