diff options
-rw-r--r-- | protocols/Skype/src/skype_subclassing.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
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);
|