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/IcqOscarJ/src/icq_server.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_server.cpp') diff --git a/protocols/IcqOscarJ/src/icq_server.cpp b/protocols/IcqOscarJ/src/icq_server.cpp index 87e1007267..1de0a261e5 100644 --- a/protocols/IcqOscarJ/src/icq_server.cpp +++ b/protocols/IcqOscarJ/src/icq_server.cpp @@ -107,17 +107,16 @@ void __cdecl CIcqProto::ServerThread(serverthread_start_info *infoParam) // This is the "infinite" loop that receives the packets from the ICQ server NETLIBPACKETRECVER packetRecv; - info.hPacketRecver = (HANDLE)CallService(MS_NETLIB_CREATEPACKETRECVER, (WPARAM)hServerConn, 0x2400); + info.hPacketRecver = Netlib_CreatePacketReceiver(hServerConn, 0x2400); while (serverThreadHandle) { if (info.bReinitRecver) { // we reconnected, reinit struct info.bReinitRecver = false; memset(&packetRecv, 0, sizeof(packetRecv)); - packetRecv.cbSize = sizeof(packetRecv); packetRecv.dwTimeout = 1000; } - int recvResult = CallService(MS_NETLIB_GETMOREPACKETS, (WPARAM)info.hPacketRecver, (LPARAM)&packetRecv); + int recvResult = Netlib_GetMorePackets(info.hPacketRecver, &packetRecv); if (recvResult == 0) { debugLogA("Clean closure of server socket"); break; -- cgit v1.2.3