diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-29 18:00:11 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-29 18:00:11 +0000 |
commit | 646699d761a54cbe3c1c94ed9b826ad01a81e004 (patch) | |
tree | 13bd2a82ba375e6bc87dfb200f2c96d2ae1a25d2 /protocols/Skype | |
parent | 0a8a048876b641e4f8b3959f93b2bcc6b5d27c52 (diff) |
added check for runtime starting
git-svn-id: http://svn.miranda-ng.org/main/trunk@2883 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-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);
|