From 541eab20530165d10592a9fda590f435c6a8b4be Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jul 2019 13:27:50 +0300 Subject: obsolete code removed from NETLIBBIND --- src/mir_app/src/netlib.h | 2 +- src/mir_app/src/netlibbind.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/netlib.h b/src/mir_app/src/netlib.h index 2b03691dcc..61546574e1 100644 --- a/src/mir_app/src/netlib.h +++ b/src/mir_app/src/netlib.h @@ -119,7 +119,7 @@ struct NetlibBoundPort : public MZeroedObject WORD wPort; WORD wExPort; NetlibUser *nlu; - NETLIBNEWCONNECTIONPROC_V2 pfnNewConnectionV2; + NETLIBNEWCONNECTIONPROC pfnNewConnection; HANDLE hThread; void *pExtra; }; diff --git a/src/mir_app/src/netlibbind.cpp b/src/mir_app/src/netlibbind.cpp index a6152adf09..ca551c20e1 100644 --- a/src/mir_app/src/netlibbind.cpp +++ b/src/mir_app/src/netlibbind.cpp @@ -172,8 +172,8 @@ static void __cdecl NetlibBindAcceptThread(NetlibBoundPort *nlbp) nlc->nlu = nlbp->nlu; nlc->s = s; - if (nlbp->pfnNewConnectionV2) - nlbp->pfnNewConnectionV2(nlc, ntohl(sin.sin_addr.S_un.S_addr), nlbp->pExtra); + if (nlbp->pfnNewConnection) + nlbp->pfnNewConnection(nlc, ntohl(sin.sin_addr.S_un.S_addr), nlbp->pExtra); } NetlibUPnPDeletePortMapping(nlbp->wExPort, "TCP"); @@ -310,7 +310,7 @@ NetlibBoundPort::NetlibBoundPort(HNETLIBUSER _nlu, NETLIBBIND *nlb) : handleType(NLH_BOUNDPORT), nlu(_nlu) { - pfnNewConnectionV2 = nlb->pfnNewConnectionV2; + pfnNewConnection = nlb->pfnNewConnection; pExtra = nlb->pExtra; s = socket(PF_INET, SOCK_STREAM, 0); -- cgit v1.2.3