diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-18 21:52:06 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-18 21:52:06 +0000 |
commit | 47e5e82a35999401cc7676cd19a4b8b289a2024c (patch) | |
tree | 20449be9036d3d2503b49f4c2ba481be99261c66 /protocols/AimOscar/client.cpp | |
parent | bb7bf61220abb44c385deabda02daed66e9e2389 (diff) |
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@1030 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/client.cpp')
-rw-r--r-- | protocols/AimOscar/client.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/protocols/AimOscar/client.cpp b/protocols/AimOscar/client.cpp index 2fc4333728..2e0e5c94bf 100644 --- a/protocols/AimOscar/client.cpp +++ b/protocols/AimOscar/client.cpp @@ -251,19 +251,7 @@ int CAimProto::aim_set_profile(HANDLE hServerConn,unsigned short &seqno, char* a int CAimProto::aim_client_ready(HANDLE hServerConn,unsigned short &seqno)
{
- unsigned short offset=0;
- NETLIBBIND nlb = {0};
- nlb.cbSize = sizeof(nlb);
- nlb.pfnNewConnectionV2 = (NETLIBNEWCONNECTIONPROC_V2)aim_direct_connection_initiated;
- nlb.pExtra = this;
- hDirectBoundPort = (HANDLE)CallService(MS_NETLIB_BINDPORT, (WPARAM)hNetlibPeer, (LPARAM)&nlb);
- if (hDirectBoundPort == NULL)
- {
- ShowPopup(LPGEN("Aim was unable to bind to a port. File transfers may not succeed in some cases."), ERROR_POPUP);
- local_port = 0;
- }
- else
- local_port = nlb.wPort;
+ unsigned short offset = 0;
NETLIBCONNINFO connInfo = { sizeof(connInfo) };
CallService(MS_NETLIB_GETCONNECTIONINFO, (WPARAM)hServerConn, (LPARAM)&connInfo);
|