Skip to content
Snippets Groups Projects
Commit acaf3250 authored by Kathleen Brade's avatar Kathleen Brade Committed by Georg Koppen
Browse files

squash! Bug 4234: Use the Firefox Update Process for Tor Browser.

Also fix 32616: Disable GetSecureOutputDirectoryPath() functionality.
parent 5b0caff7
No related branches found
Tags tor-browser-68.1.0esr-9.0-2-build3
No related merge requests found
......@@ -62,6 +62,13 @@ BOOL PathGetSiblingFilePath(LPWSTR destinationBuffer, LPCWSTR siblingFilePath,
* @return TRUE if successful
*/
BOOL GetSecureOutputDirectoryPath(LPWSTR outBuf) {
#ifdef TOR_BROWSER_UPDATE
// This function is used to support the maintenance service and elevated
// updates and is therefore not called by Tor Browser's updater. We stub
// it out to avoid any chance that the Tor Browser updater will create
// files under C:\Program Files (x86)\ or a similar location.
return FALSE;
#else
PWSTR progFilesX86;
if (FAILED(SHGetKnownFolderPath(FOLDERID_ProgramFilesX86, KF_FLAG_CREATE,
nullptr, &progFilesX86))) {
......@@ -95,6 +102,7 @@ BOOL GetSecureOutputDirectoryPath(LPWSTR outBuf) {
}
return TRUE;
#endif
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment