summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/icq_server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_server.cpp')
-rw-r--r--protocols/IcqOscarJ/src/icq_server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icq_server.cpp b/protocols/IcqOscarJ/src/icq_server.cpp
index 732c251ec3..27e72224b0 100644
--- a/protocols/IcqOscarJ/src/icq_server.cpp
+++ b/protocols/IcqOscarJ/src/icq_server.cpp
@@ -29,7 +29,7 @@
#include "stdafx.h"
-void icq_newConnectionReceived(HANDLE hNewConnection, DWORD dwRemoteIP, void *pExtra);
+void icq_newConnectionReceived(HNETLIBCONN hNewConnection, DWORD dwRemoteIP, void *pExtra);
/////////////////////////////////////////////////////////////////////////////////////////
// ICQ Server thread
@@ -152,7 +152,8 @@ void __cdecl CIcqProto::ServerThread(serverthread_start_info *infoParam)
NetLib_SafeCloseHandle(&info.hPacketRecver);
// Close DC port
- NetLib_SafeCloseHandle(&info.hDirectBoundPort);
+ Netlib_CloseHandle(info.hDirectBoundPort);
+ info.hDirectBoundPort = NULL;
// disable auto info-update thread
icq_EnableUserLookup(FALSE);