From dc81b8ba64f571c92645e0ef0dcdbf5c3f209f28 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Oct 2015 11:43:50 +0000 Subject: fix for bug #754 (MsgExport write in text file nick as (Unknown Contact)) git-svn-id: http://svn.miranda-ng.org/main/trunk@15554 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Msg_Export/src/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Msg_Export/src/options.cpp') diff --git a/plugins/Msg_Export/src/options.cpp b/plugins/Msg_Export/src/options.cpp index 6611f692da..1ed9ad9931 100755 --- a/plugins/Msg_Export/src/options.cpp +++ b/plugins/Msg_Export/src/options.cpp @@ -92,7 +92,7 @@ public: int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort) { if (lParamSort == 1) - return mir_tstrcmpi(NickFromHandle((MCONTACT)lParam1), NickFromHandle((MCONTACT)lParam2)); + return mir_tstrcmpi(pcli->pfnGetContactDisplayName(lParam1, 0), pcli->pfnGetContactDisplayName(lParam2, 0)); if (lParamSort == 2) return _DBGetString((MCONTACT)lParam1, "Protocol", "p", _T("")).compare(_DBGetString((MCONTACT)lParam2, "Protocol", "p", _T(""))); @@ -693,7 +693,7 @@ static INT_PTR CALLBACK DlgProcMsgExportOpts(HWND hwndDlg, UINT msg, WPARAM wPar sItem.mask = LVIF_TEXT; sItem.iSubItem = 1; - sItem.pszText = (TCHAR*)NickFromHandle(hContact); + sItem.pszText = pcli->pfnGetContactDisplayName(hContact, 0); ListView_SetItem(hMapUser, &sItem); sItem.iSubItem = 2; -- cgit v1.2.3