VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-19 22:20:24 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-01-20 00:53:08 +0100
commit43f5fae2ee6b7bc9aaaabd637672f105e43c3688 (patch)
tree14f82eaa950c2bebd73e9cd05c159fa9b6823d08 /src/Common/Dlgcode.c
parentf9fa0191ec1825f71a1547e4029a05d394cf3800 (diff)
downloadVeraCrypt-43f5fae2ee6b7bc9aaaabd637672f105e43c3688.tar.gz
VeraCrypt-43f5fae2ee6b7bc9aaaabd637672f105e43c3688.zip
Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c8
1 files changed, 7 insertions, 1 deletions
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 <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;