From e145db68fb5b7d0682a4b2be0174cebfe47dd74e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Jan 2017 00:01:59 +0300 Subject: a bit less netlib services --- protocols/MSN/src/msn_threads.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MSN/src/msn_threads.cpp') diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp index 2bddaea516..de17faa243 100644 --- a/protocols/MSN/src/msn_threads.cpp +++ b/protocols/MSN/src/msn_threads.cpp @@ -160,7 +160,7 @@ void __cdecl CMsnProto::MSNServerThread(void* arg) debugLogA("Thread started: server='%s:%d', type=%d", tConn.szHost, tConn.wPort, info->mType); - info->s = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)m_hNetlibUser, (LPARAM)&tConn); + info->s = Netlib_OpenConnection(m_hNetlibUser, &tConn); if (info->s == NULL) { debugLogA("Connection Failed (%d) server='%s:%d'", WSAGetLastError(), tConn.szHost, tConn.wPort); @@ -336,7 +336,7 @@ void CMsnProto::MSN_CloseConnections(void) break; case SERVER_P2P_DIRECT: - CallService(MS_NETLIB_SHUTDOWN, (WPARAM)T.s, 0); + Netlib_Shutdown(T.s); break; } } @@ -344,7 +344,7 @@ void CMsnProto::MSN_CloseConnections(void) lck.unlock(); if (hHttpsConnection) - CallService(MS_NETLIB_SHUTDOWN, (WPARAM)hHttpsConnection, 0); + Netlib_Shutdown(hHttpsConnection); } void CMsnProto::Threads_Uninit(void) -- cgit v1.2.3