mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Add link in keyfiles dialog to documentation page for risks of third-party file extensions usage.
This commit is contained in:
@@ -6800,6 +6800,8 @@ BOOL CALLBACK KeyfileGeneratorDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LP
|
||||
SetWindowText(GetDlgItem (hwndDlg, IDC_KEYFILES_SIZE), L"64");
|
||||
// set the maximum length of the keyfile base name to (TC_MAX_PATH - 1)
|
||||
SendMessage (GetDlgItem (hwndDlg, IDC_KEYFILES_BASE_NAME), EM_SETLIMITTEXT, (WPARAM) (TC_MAX_PATH - 1), 0);
|
||||
|
||||
ToHyperlink (hwndDlg, IDC_LINK_KEYFILES_EXTENSIONS_WARNING);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -6887,6 +6889,12 @@ BOOL CALLBACK KeyfileGeneratorDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LP
|
||||
EnableWindow(GetDlgItem (hwndDlg, IDC_KEYFILES_SIZE_UNIT), !GetCheckBox (hwndDlg, IDC_KEYFILES_RANDOM_SIZE));
|
||||
}
|
||||
|
||||
if (lw == IDC_LINK_KEYFILES_EXTENSIONS_WARNING)
|
||||
{
|
||||
Applink ("keyfilesextensions");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (lw == IDC_GENERATE_AND_SAVE_KEYFILE)
|
||||
{
|
||||
wchar_t szNumber[16] = {0};
|
||||
@@ -10957,6 +10965,10 @@ void Applink (const char *dest)
|
||||
{
|
||||
StringCbCopyW (page, sizeof (page),L"Keyfiles.html");
|
||||
}
|
||||
else if (strcmp(dest, "keyfilesextensions") == 0)
|
||||
{
|
||||
StringCbCopyW (page, sizeof (page),L"Avoid%20Third-Party%20File%20Extensions.html");
|
||||
}
|
||||
else if (strcmp(dest, "introcontainer") == 0)
|
||||
{
|
||||
StringCbCopyW (page, sizeof (page),L"Creating%20New%20Volumes.html");
|
||||
|
||||
Reference in New Issue
Block a user