mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows installer: use correct installation directory for opening HTML help (for now only donation page).
This commit is contained in:
@@ -10239,18 +10239,25 @@ std::wstring GetWindowsEdition ()
|
|||||||
return osname;
|
return osname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef SETUP
|
||||||
|
extern wchar_t InstallationPath[TC_MAX_PATH];
|
||||||
|
#endif
|
||||||
|
|
||||||
void Applink (char *dest, BOOL bSendOS, char *extraOutput)
|
void Applink (char *dest, BOOL bSendOS, char *extraOutput)
|
||||||
{
|
{
|
||||||
wchar_t url [MAX_URL_LENGTH] = {0};
|
wchar_t url [MAX_URL_LENGTH] = {0};
|
||||||
wchar_t page[MAX_PATH] = {0};
|
wchar_t page[TC_MAX_PATH] = {0};
|
||||||
wchar_t installDir[MAX_PATH] = {0};
|
wchar_t installDir[TC_MAX_PATH] = {0};
|
||||||
BOOL buildUrl = TRUE;
|
BOOL buildUrl = TRUE;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
ArrowWaitCursor ();
|
ArrowWaitCursor ();
|
||||||
|
|
||||||
GetModPath (installDir, MAX_PATH);
|
#ifdef SETUP
|
||||||
|
StringCbCopyW (installDir, sizeof (installDir), InstallationPath);
|
||||||
|
#else
|
||||||
|
GetModPath (installDir, TC_MAX_PATH);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (strcmp(dest, "donate") == 0)
|
if (strcmp(dest, "donate") == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user