From 43f5fae2ee6b7bc9aaaabd637672f105e43c3688 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 19 Jan 2016 22:20:24 +0100 Subject: Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications. --- src/Common/Dlgcode.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/Common') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 8b1ed218..c3f0224d 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -25,6 +25,7 @@ #include #include #include +#include #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; -- cgit v1.2.3