summaryrefslogtreecommitdiff
path: root/plugins/ImportTXT/importtxtdlg.pas
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-20 16:35:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-20 16:35:31 +0000
commit88eb8039f7d2891f4cbf3eefc3747776d854c3b6 (patch)
treecd171c49d47af8e87b79909f21c90f671627d80f /plugins/ImportTXT/importtxtdlg.pas
parent46c6adb68f842b0a8b37b1e1996d186629c2f0fb (diff)
fix for a window title
git-svn-id: http://svn.miranda-ng.org/main/trunk@1998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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)));