Windows: always open online help in case of Setup because local help may be outdated

This commit is contained in:
Mounir IDRASSI 2023-09-24 01:41:35 +02:00
parent 76c64d49ea
commit 937c5cd5cd
No known key found for this signature in database
GPG Key ID: FC1B00364B3FE937
2 changed files with 7 additions and 1 deletions

View File

@ -11223,8 +11223,14 @@ void Applink (const char *dest)
if (buildUrl)
{
// in case of setup, always open the online documentation because existing documentation may be outdated
#ifdef SETUP
StringCbPrintfW (url, sizeof (url), L"https://www.veracrypt.fr/en/%s", page);
buildUrl = FALSE;
#else
StringCbPrintfW (url, sizeof (url), L"file:///%sdocs/html/en/%s", installDir, page);
CorrectURL (url);
#endif
}
if (IsAdmin ())

View File

@ -702,7 +702,7 @@ BOOL CALLBACK PageDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
return 1;
case IDC_DISABLE_MEMORY_PROTECTION_HELP:
Applink("memoryprotection")
Applink("memoryprotection");
return 1;
case IDC_FILE_TYPE: