summaryrefslogtreecommitdiff
path: root/plugins/ImportTXT/importtxtdlg.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ImportTXT/importtxtdlg.pas')
-rw-r--r--plugins/ImportTXT/importtxtdlg.pas4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/ImportTXT/importtxtdlg.pas b/plugins/ImportTXT/importtxtdlg.pas
index e4901d9d5a..0fafe155c1 100644
--- a/plugins/ImportTXT/importtxtdlg.pas
+++ b/plugins/ImportTXT/importtxtdlg.pas
@@ -93,9 +93,7 @@ begin
WM_INITDIALOG:
begin
TranslateDialogDefault(Dialog);
- tempwstr := ANSIToWide(
- PAnsiChar(CallService(MS_CLIST_GETCONTACTDISPLAYNAME,lParam,0)),
- tempwstr, cp);
+ tempwstr := PWideChar(CallService(MS_CLIST_GETCONTACTDISPLAYNAME,lParam,GCDNF_UNICODE));
s := WideFormat(TranslateWideString('Import history to %s (%s)'), [tempwstr, GetContactID(lParam)]);
SetWindowTextW(Dialog, PWideChar(s));
SendMessage(Dialog, WM_SETICON, ICON_SMALL, LoadIcon(hInstance, MAKEINTRESOURCE(IDI_DEFAULT)));