diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-09-06 01:42:23 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2023-09-06 01:42:23 +0200 |
commit | 0ad5c43eb42f696807b4df0b515f2742831b2c18 (patch) | |
tree | 0396103ebdf49aa4ce30109b4e2b8bc5c7bda813 /src/Common/Keyfiles.c | |
parent | 609a6384996c17f507dba442949786cc5d7ae766 (diff) | |
download | VeraCrypt-0ad5c43eb42f696807b4df0b515f2742831b2c18.tar.gz VeraCrypt-0ad5c43eb42f696807b4df0b515f2742831b2c18.zip |
Windows: remove recommendation of keyfiles files extensions and update documentation to mention risks of third-party file extensions.
This commit also adds red color to the warning text about keyfiles in keyfiles dialogs.
Diffstat (limited to 'src/Common/Keyfiles.c')
-rw-r--r-- | src/Common/Keyfiles.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c index be32b98d..04319e09 100644 --- a/src/Common/Keyfiles.c +++ b/src/Common/Keyfiles.c @@ -487,6 +487,19 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa } return 1; + case WM_CTLCOLORSTATIC: + { + if (((HWND)lParam == GetDlgItem(hwndDlg, IDT_KEYFILE_WARNING)) ) + { + // we're about to draw the static + // set the text colour in (HDC)wParam + SetBkMode((HDC)wParam,TRANSPARENT); + SetTextColor((HDC)wParam, RGB(255,0,0)); + return (BOOL)GetSysColorBrush(COLOR_MENU); + } + } + return 0; + case WM_COMMAND: if (lw == IDC_KEYADD) |