diff options
Diffstat (limited to 'src/mir_app')
-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);
|