From 729f3c800a77eaba46c86e4bb45e08bd8fb1ae1c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 17 Apr 2013 04:28:24 +0000 Subject: 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 --- protocols/Skype/src/skype_subclassing.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Skype/src') 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(); -- cgit v1.2.3