From c6b5a9cda42f6ad6eb8ebeee0fe43257b25f7af6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 23:30:48 +0000 Subject: 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 --- plugins/TabSRMM/src/trayicon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/TabSRMM/src/trayicon.cpp') diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp index 9ac0f29aa5..87fb8fa7dc 100644 --- a/plugins/TabSRMM/src/trayicon.cpp +++ b/plugins/TabSRMM/src/trayicon.cpp @@ -215,8 +215,7 @@ void TSAPI AddContactToFavorites(MCONTACT hContact, const TCHAR *szNickname, con if (hIcon == 0) hIcon = LoadSkinnedProtoIcon(szProto, wStatus); - PROTOACCOUNT *acc = (PROTOACCOUNT *)CallService(MS_PROTO_GETACCOUNT, 0, (LPARAM)szProto); - + PROTOACCOUNT *acc = ProtoGetAccount(szProto); if (acc && acc->tszAccountName) { mii.cbSize = sizeof(mii); mir_sntprintf(szMenuEntry, SIZEOF(szMenuEntry), _T("%s: %s (%s)"), acc->tszAccountName, szFinalNick, szStatus); -- cgit v1.2.3