mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications.
This commit is contained in:
parent
f9fa0191ec
commit
43f5fae2ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user