Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications.

This commit is contained in:
Mounir IDRASSI 2016-01-19 22:20:24 +01:00
parent f9fa0191ec
commit 43f5fae2ee

View File

@ -25,6 +25,7 @@
#include <stdlib.h>
#include <time.h>
#include <tchar.h>
#include <Richedit.h>
#include "Resource.h"
@ -3271,7 +3272,12 @@ BOOL CALLBACK TextInfoDialogBoxDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L
r = GetLegalNotices ();
if (r != NULL)
{
SetWindowTextA (GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), r);
SETTEXTEX TextInfo = {0};
TextInfo.flags = ST_SELECTION;
TextInfo.codepage = CP_ACP;
SendMessage(GetDlgItem (hwndDlg, IDC_INFO_BOX_TEXT), EM_SETTEXTEX, (WPARAM)&TextInfo, (LPARAM)r);
free (r);
}
break;