diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 13:27:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 13:27:50 +0300 |
commit | 541eab20530165d10592a9fda590f435c6a8b4be (patch) | |
tree | 6b0209e00cd152aabb800c184380cefe44d01a4f /src | |
parent | 0db449bf70966941453cfbb8ec05fd430a96dc12 (diff) |
obsolete code removed from NETLIBBIND
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlib.h | 2 | ||||
-rw-r--r-- | src/mir_app/src/netlibbind.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
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);
|