diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-16 07:27:00 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-16 07:27:00 +0000 |
commit | 0e88c1fc2f51c815e6b2ebd0ad79d5c0d0661a7c (patch) | |
tree | 4ca18985738be30745efac2916ffb7d2feb27e57 /protocols/Skype/src/skype_instances.cpp | |
parent | 598bd198b278e05681e79d995f9be56e057832f5 (diff) |
Skype:
- fix for future birthday
- fix for closing chat room sessions on logout
- added some logging
git-svn-id: http://svn.miranda-ng.org/main/trunk@4971 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_instances.cpp')
-rw-r--r-- | protocols/Skype/src/skype_instances.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index c3d8adea64..c0a6ed0bd6 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -28,7 +28,7 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u }
char *keyPair = ppro->LoadKeyPair();
- if ( !keyPair)
+ if (keyPair == NULL)
{
CSkypeProto::ShowNotification(::TranslateT("Initialization key corrupted or not valid."), MB_ICONERROR);
return NULL;
@@ -37,7 +37,9 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u TransportInterface::Status status = ppro->init(keyPair, "127.0.0.1", ppro->skypeKitPort, 0, 1);
if (status != TransportInterface::OK)
{
- CSkypeProto::ShowNotification(::TranslateT("SkypeKit did not initialize."), MB_ICONERROR);
+ wchar_t message[256];
+ ::mir_sntprintf(message, SIZEOF(message), ::TranslateT("SkypeKit did not initialize (%d)."), status);
+ CSkypeProto::ShowNotification(message, MB_ICONERROR);
return NULL;
}
|