summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-12 17:30:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-12 17:30:34 +0300
commit768c9c82b193b1031ea8ee9f2cb41404d48310e7 (patch)
treea72f1898984a9030a99fb4d577729596d376b236 /src
parent78b89f938c490233c004b943a7ae93f0d3c173b0 (diff)
fixes #2004 (ICQ/Clist_modern/core: роняет миранду при подключении протокола ICQ)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clcidents.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mir_app/src/clcidents.cpp b/src/mir_app/src/clcidents.cpp
index 35a2552c0d..931975a599 100644
--- a/src/mir_app/src/clcidents.cpp
+++ b/src/mir_app/src/clcidents.cpp
@@ -221,9 +221,11 @@ MIR_APP_DLL(HANDLE) Clist_ContactToItemHandle(ClcContact *cc, DWORD *nmFlags)
MIR_APP_DLL(int) Clist_GetRealStatus(ClcContact *cc, int iDefaultValue)
{
- PROTOACCOUNT *pa = Proto_GetAccount(cc->pce->szProto);
- if (pa)
- return pa->iRealStatus;
+ if (cc->pce) {
+ PROTOACCOUNT *pa = Proto_GetAccount(cc->pce->szProto);
+ if (pa)
+ return pa->iRealStatus;
+ }
return iDefaultValue;
}