1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Windows installer: use correct installation directory for opening HTML help (for now only donation page).

This commit is contained in:
Mounir IDRASSI
2017-05-15 16:01:38 +02:00
parent 6fe660c249
commit ce4e7fd64d

View File

@@ -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)
{