summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:37:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:37:44 +0000
commit91187e797c9b4a477c2a4c9e5bf6b1833d92e683 (patch)
tree9eb373268cceb4bcc80b06c42a31cb0bd5a70318 /plugins
parent497153f11a96cd336e8dadeeaa50c29e2c1bc2af (diff)
account disabling causes crash in MyDetails
git-svn-id: http://svn.miranda-ng.org/main/trunk@1652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MyDetails/src/data.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp
index 5b80f138ef..1bcb004409 100644
--- a/plugins/MyDetails/src/data.cpp
+++ b/plugins/MyDetails/src/data.cpp
@@ -120,11 +120,14 @@ bool Protocol::IsValid()
return valid;
}
-
int Protocol::GetStatus()
{
int old_status = status;
- status = CallProtoService(name, PS_GETSTATUS, 0, 0);
+ INT_PTR iStatus = CallProtoService(name, PS_GETSTATUS, 0, 0);
+ if (iStatus == CALLSERVICE_NOTFOUND)
+ return status = ID_STATUS_OFFLINE;
+
+ status = (int)iStatus;
if (old_status != status)
data_changed = true;