mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user