From 88eb8039f7d2891f4cbf3eefc3747776d854c3b6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Oct 2012 16:35:31 +0000 Subject: fix for a window title git-svn-id: http://svn.miranda-ng.org/main/trunk@1998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ImportTXT/importtxtdlg.pas | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/ImportTXT') 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))); -- cgit v1.2.3