summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WhenWasIt/src')
-rw-r--r--plugins/WhenWasIt/src/dlg_handlers.cpp3
1 files changed, 1 insertions, 2 deletions
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) {