diff options
author | George Hazan <george.hazan@gmail.com> | 2015-10-14 11:43:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-10-14 11:43:50 +0000 |
commit | dc81b8ba64f571c92645e0ef0dcdbf5c3f209f28 (patch) | |
tree | d477768006c93c8ff11b0e9e66b10ac1ffd61c83 /plugins/Msg_Export/src/options.cpp | |
parent | a80da4fa81421d40a435561ddb62ad2be3e63bf2 (diff) |
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
Diffstat (limited to 'plugins/Msg_Export/src/options.cpp')
-rwxr-xr-x | plugins/Msg_Export/src/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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;
|