diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-18 23:30:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-18 23:30:48 +0000 |
commit | c6b5a9cda42f6ad6eb8ebeee0fe43257b25f7af6 (patch) | |
tree | 84a06f2864beb75e3e0995b5fff813fe85695efb /plugins/TabSRMM/src/contactcache.cpp | |
parent | d1ad49337af4b2f89af194676902631a545ab5a2 (diff) |
fix for the total crash of everything when tabSRMM gets unloaded dynamically
git-svn-id: http://svn.miranda-ng.org/main/trunk@11519 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 7ca4e06c94..1483d13b46 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -61,7 +61,7 @@ void CContactCache::initPhaseTwo() { m_szAccount = 0; if (cc->szProto) { - PROTOACCOUNT *acc = reinterpret_cast<PROTOACCOUNT *>(::CallService(MS_PROTO_GETACCOUNT, 0, (LPARAM)cc->szProto)); + PROTOACCOUNT *acc = ProtoGetAccount(cc->szProto); if (acc && acc->tszAccountName) m_szAccount = acc->tszAccountName; } @@ -75,7 +75,6 @@ void CContactCache::initPhaseTwo() updateFavorite(); } else { - cc->szProto = C_INVALID_PROTO; m_szAccount = C_INVALID_ACCOUNT; m_isMeta = false; } |