From f15052e68d43bdad8d8a125a3601ff8cedcf5a3d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 8 Sep 2023 09:38:51 +0200 Subject: Windows: Add link in keyfiles dialog to documentation page for risks of third-party file extensions usage. --- src/Common/Keyfiles.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Common/Keyfiles.c') diff --git a/src/Common/Keyfiles.c b/src/Common/Keyfiles.c index 04319e09..d10daa06 100644 --- a/src/Common/Keyfiles.c +++ b/src/Common/Keyfiles.c @@ -484,6 +484,7 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa SetWindowTextW(GetDlgItem(hwndDlg, IDT_KEYFILES_NOTE), GetString ("KEYFILES_NOTE")); ToHyperlink (hwndDlg, IDC_LINK_KEYFILES_INFO); + ToHyperlink (hwndDlg, IDC_LINK_KEYFILES_EXTENSIONS_WARNING); } return 1; @@ -627,6 +628,12 @@ BOOL CALLBACK KeyFilesDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPa return 1; } + if (lw == IDC_LINK_KEYFILES_EXTENSIONS_WARNING) + { + Applink ("keyfilesextensions"); + return 1; + } + if (lw == IDOK) { param->EnableKeyFiles = IsButtonChecked (GetDlgItem (hwndDlg, IDC_KEYFILES_ENABLE)); -- cgit v1.2.3