From df428745363d5b3d22f2a737930ca0e7af8e2221 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 10 Jun 2013 08:55:41 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@4906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/Skype_10.vcxproj.filters | 5 +++++ protocols/Skype/Skype_11.vcxproj.filters | 18 ++++++++++-------- protocols/Skype/src/skype_instances.cpp | 5 ++++- 3 files changed, 19 insertions(+), 9 deletions(-) (limited to 'protocols') diff --git a/protocols/Skype/Skype_10.vcxproj.filters b/protocols/Skype/Skype_10.vcxproj.filters index dad133ab2a..8c14493215 100644 --- a/protocols/Skype/Skype_10.vcxproj.filters +++ b/protocols/Skype/Skype_10.vcxproj.filters @@ -205,4 +205,9 @@ Resource Files\Icons + + + Resource Files\Icons + + \ No newline at end of file diff --git a/protocols/Skype/Skype_11.vcxproj.filters b/protocols/Skype/Skype_11.vcxproj.filters index e4e52e2a0e..8c14493215 100644 --- a/protocols/Skype/Skype_11.vcxproj.filters +++ b/protocols/Skype/Skype_11.vcxproj.filters @@ -60,9 +60,6 @@ Source Files - - Source Files - Source Files @@ -102,21 +99,24 @@ Source Files - - Source Files - Source Files Source Files - + + Source Files + + Source Files Source Files + + Source Files + @@ -206,6 +206,8 @@ - + + Resource Files\Icons + \ No newline at end of file diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index 935ecf73d0..2875311c3f 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -9,7 +9,7 @@ int CSkypeProto::CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2) CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName) { - if (CSkypeProto::instanceList.getCount() > 0) + if (CSkypeProto::instanceList.getCount() > 0) { CSkypeProto::ShowNotification( ::TranslateT("SkypeKit will only permit you to login to one account at a time.\nAdding multiple instances of SkypeKit is prohibited in the licence agreement and standard distribution terms."), @@ -31,6 +31,7 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u if ( !keyPair) { CSkypeProto::ShowNotification(::TranslateT("Initialization key corrupted or not valid.")); + ppro->StopSkypeRuntime(); return NULL; } @@ -38,12 +39,14 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u if (status != TransportInterface::OK) { CSkypeProto::ShowNotification(::TranslateT("SkypeKit did not initialize.")); + ppro->StopSkypeRuntime(); return NULL; } if ( !ppro->start()) { ::MessageBox(NULL, TranslateT("SkypeKit did not start."), _T(MODULE), MB_OK | MB_ICONERROR); + ppro->StopSkypeRuntime(); return NULL; } -- cgit v1.2.3