diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-17 04:28:24 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-17 04:28:24 +0000 |
commit | 729f3c800a77eaba46c86e4bb45e08bd8fb1ae1c (patch) | |
tree | d215e2a076bc6f82841704a22aef8b0c5b61d04b | |
parent | 0feeb79e5f68d560e312e6a47c6b3decfa25de36 (diff) |
fixed crash on start when skypekit couldn't connect quickly
git-svn-id: http://svn.miranda-ng.org/main/trunk@4461 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/Skype/src/skype_subclassing.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp index 2c24252fa7..5fbf7819d8 100644 --- a/protocols/Skype/src/skype_subclassing.cpp +++ b/protocols/Skype/src/skype_subclassing.cpp @@ -280,13 +280,12 @@ CSkype *CSkype::GetInstance(HINSTANCE hInstance, const wchar_t *profileName, con int port = 8963;
if (!CSkype::StartSkypeRuntime(hInstance, profileName, port, dbPath)) return NULL;
-
- char *keyPair = CSkype::LoadKeyPair(hInstance);
+ char *keyPair = CSkype::LoadKeyPair(hInstance);
if (!keyPair)
return NULL;
CSkype *skype = new CSkype();
- TransportInterface::Status status = skype->init(keyPair, "127.0.0.1", port, 0, 2, 3);
+ TransportInterface::Status status = skype->init(keyPair, "127.0.0.1", port);
if (status != TransportInterface::OK)
return NULL;
skype->start();
|