diff options
author | kavsrf <kavsrf@gmail.com> | 2017-02-09 00:28:02 +0300 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-05 17:45:45 +0200 |
commit | 46cd09ef50bb63fa2b30b9c4f9fd284e130a46d4 (patch) | |
tree | 152e3767b8ae81a2dd6dc7e5e81e1411e02ce7e3 /src/Mount/Mount.c | |
parent | a075d45a99d31340c0de57262cd18eb717c3722a (diff) | |
download | VeraCrypt-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.c | 11 |
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"); |