summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Skype/skypeapi.c
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-29 12:02:39 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-29 12:02:39 +0000
commit837ba88833d864c06ee5d6110a570387a1f37d48 (patch)
tree722331fe8d20c8e50fee0d2a66c94ab152f64b91 /plugins/!NotAdopted/Skype/skypeapi.c
parent4579351044c7c214e44c35816a9ac0934b7ecdf4 (diff)
Skype: updated to the latest sources
git-svn-id: http://svn.miranda-ng.org/main/trunk@1240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Skype/skypeapi.c')
-rw-r--r--plugins/!NotAdopted/Skype/skypeapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/Skype/skypeapi.c b/plugins/!NotAdopted/Skype/skypeapi.c
index 2a6eb1b76e..e26be6e6d2 100644
--- a/plugins/!NotAdopted/Skype/skypeapi.c
+++ b/plugins/!NotAdopted/Skype/skypeapi.c
@@ -1463,6 +1463,12 @@ static int _ConnectToSkypeAPI(char *path, int iStart) {
}
for ( ;; ) {
char *ptr = SkypeRcv ("CONNSTATUS", INFINITE);
+ if (!ptr)
+ {
+ AttachStatus=SKYPECONTROLAPI_ATTACH_NOT_AVAILABLE;
+ return -1;
+ }
+
if (strcmp (ptr+11, "CONNECTING"))
{
free (ptr);