diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-19 22:20:24 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2016-01-20 00:53:08 +0100 |
commit | 43f5fae2ee6b7bc9aaaabd637672f105e43c3688 (patch) | |
tree | 14f82eaa950c2bebd73e9cd05c159fa9b6823d08 | |
parent | f9fa0191ec1825f71a1547e4029a05d394cf3800 (diff) | |
download | VeraCrypt-43f5fae2ee6b7bc9aaaabd637672f105e43c3688.tar.gz VeraCrypt-43f5fae2ee6b7bc9aaaabd637672f105e43c3688.zip |
Windows:Fix issue with the display of legal notices text. Regression caused by the latest Unicode modifications.
-rw-r--r-- | src/Common/Dlgcode.c | 8 |
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;
|