VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Mount/Mount.c
diff options
context:
space:
mode:
authorkavsrf <kavsrf@gmail.com>2017-02-09 00:28:02 +0300
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-05 17:45:45 +0200
commit46cd09ef50bb63fa2b30b9c4f9fd284e130a46d4 (patch)
tree152e3767b8ae81a2dd6dc7e5e81e1411e02ce7e3 /src/Mount/Mount.c
parenta075d45a99d31340c0de57262cd18eb717c3722a (diff)
downloadVeraCrypt-46cd09ef50bb63fa2b30b9c4f9fd284e130a46d4.tar.gz
VeraCrypt-46cd09ef50bb63fa2b30b9c4f9fd284e130a46d4.zip
PlatformInfo read. (via ReadEfiConfig)
It is displayed in System settings
Diffstat (limited to 'src/Mount/Mount.c')
-rw-r--r--src/Mount/Mount.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 50f6e8f0..6c1aeedf 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -10916,6 +10916,17 @@ static BOOL CALLBACK BootLoaderPreferencesDlgProc (HWND hwndDlg, UINT msg, WPARA
return 1;
}
+ byte platforminfo[10*1024];
+ platforminfo[0] = 0;
+ DWORD cbread;
+ try
+ {
+ BootEncObj->ReadEfiConfig(L"\\EFI\\VeraCrypt\\PlatformInfo", platforminfo, 10*1024 - 1, &cbread);
+ platforminfo[cbread - 1] = 0;
+ }
+ catch (Exception &e) { }
+ SetDlgItemTextA (hwndDlg, IDC_PLATFORMINFO, (char*)platforminfo);
+
try
{
LocalizeDialog (hwndDlg, "IDD_SYSENC_SETTINGS");