From 646699d761a54cbe3c1c94ed9b826ad01a81e004 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 29 Dec 2012 18:00:11 +0000 Subject: added check for runtime starting git-svn-id: http://svn.miranda-ng.org/main/trunk@2883 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_subclassing.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp index f5642f83e5..7b7652c880 100644 --- a/protocols/Skype/src/skype_subclassing.cpp +++ b/protocols/Skype/src/skype_subclassing.cpp @@ -259,7 +259,12 @@ int CSkype::StartSkypeRuntime(HINSTANCE hInstance, const wchar_t *profileName, i NULL, NULL, FALSE, CREATE_NEW_CONSOLE, NULL, NULL, &cif, &pi); + DWORD rterr = GetLastError(); + //if (startingrt && rterr == ERROR_SUCCESS) + //return 1; + //else + //return 0; return startingrt; } @@ -271,7 +276,9 @@ CSkype *CSkype::GetInstance(HINSTANCE hInstance, const wchar_t *profileName, con char *keyPair = CSkype::LoadKeyPair(hInstance); CSkype *skype = new CSkype(); - skype->init(keyPair, "127.0.0.1", port); + TransportInterface::Status status = skype->init(keyPair, "127.0.0.1", port, 0, 2, 3); + if (status != TransportInterface::OK) + return NULL; skype->start(); free(keyPair); -- cgit v1.2.3