From 515acdecc964323ed67742c24c96a7b858bf4496 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Feb 2023 16:19:03 +0300 Subject: =?UTF-8?q?fixes=20#3216=20(WhenWasIt:=20=D0=B4=D0=BD=D0=B8=20?= =?UTF-8?q?=D1=80=D0=BE=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=D0=BA=D1=82=D0=BE=D0=B2=20=D0=B8=D0=B7=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D1=91=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D1=85=20=D1=83=D1=87=D1=91=D1=82=D0=BD=D1=8B=D1=85=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D0=B8=D1=81=D0=B5=D0=B9=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D1=8B=D0=B2=D0=B0=D1=8E=D1=82=D1=81=D1=8F=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=BA=20=D0=B4=D0=BD=D0=B8=20=D1=80=D0=BE=D0=B6=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20"=D0=9D=D0=B5=D0=B8=D0=B7=D0=B2=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE=D0=BD=D1=82?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B0")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/WhenWasIt/src/dlg_handlers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/WhenWasIt/src') diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index 9089bd83a4..156f5b96f7 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -167,8 +167,7 @@ class CBirthdaysDlg : public CBasicListDlg int dtb = DaysToBirthday(Today(), year, month, day); int age = GetContactAge(year, month, day); - char *szProto = Proto_GetBaseAccountName(hContact); - PROTOACCOUNT *pAcc = Proto_GetAccount(szProto); + PROTOACCOUNT *pAcc = Proto_GetContactAccount(hContact); wchar_t *ptszAccName = (pAcc == nullptr) ? TranslateT("Unknown") : pAcc->tszAccountName; if (bAdd) { -- cgit v1.2.3