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

This commit is contained in:
Mounir IDRASSI committed 2016-01-20 00:53:08 +01:00
1 parent f9fa0191ec
commit 43f5fae2ee
1 file changed
+7 -1
+7 -1
View File
@@ -25,6 +25,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <tchar.h> #include <tchar.h>
#include <Richedit.h>
#include "Resource.h" #include "Resource.h"
@@ -3271,7 +3272,12 @@ BOOL CALLBACK TextInfoDialogBoxDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, L
r = GetLegalNotices (); r = GetLegalNotices ();
if (r != NULL) 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); free (r);
} }
break; break;