diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-05-15 16:01:38 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-05-17 00:46:39 +0200 |
commit | ce4e7fd64d3d462a523253dd53fb36f3aebd179a (patch) | |
tree | 3db8c04c049b18a048a0d6c06d761140595ff543 /src | |
parent | 6fe660c2498d9f3386d5a77ff733a9db400f0f21 (diff) | |
download | VeraCrypt-ce4e7fd64d3d462a523253dd53fb36f3aebd179a.tar.gz VeraCrypt-ce4e7fd64d3d462a523253dd53fb36f3aebd179a.zip |
Windows installer: use correct installation directory for opening HTML help (for now only donation page).
Diffstat (limited to 'src')
-rw-r--r-- | src/Common/Dlgcode.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index fcc69514..73eabfaf 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -10239,18 +10239,25 @@ std::wstring GetWindowsEdition () return osname; } +#ifdef SETUP +extern wchar_t InstallationPath[TC_MAX_PATH]; +#endif void Applink (char *dest, BOOL bSendOS, char *extraOutput) { wchar_t url [MAX_URL_LENGTH] = {0}; - wchar_t page[MAX_PATH] = {0}; - wchar_t installDir[MAX_PATH] = {0}; + wchar_t page[TC_MAX_PATH] = {0}; + wchar_t installDir[TC_MAX_PATH] = {0}; BOOL buildUrl = TRUE; int r; ArrowWaitCursor (); - GetModPath (installDir, MAX_PATH); +#ifdef SETUP + StringCbCopyW (installDir, sizeof (installDir), InstallationPath); +#else + GetModPath (installDir, TC_MAX_PATH); +#endif if (strcmp(dest, "donate") == 0) { |