mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 757981 - Make sure to use the correct installation directory for regular updates; r=bbondy
This commit is contained in:
parent
06d559fed3
commit
bd191c537f
@ -1710,6 +1710,11 @@ static bool
|
||||
GetInstallationDir(NS_tchar (&installDir)[N])
|
||||
{
|
||||
NS_tsnprintf(installDir, N, NS_T("%s"), gDestinationPath);
|
||||
if (!sBackgroundUpdate && !sReplaceRequest) {
|
||||
// no need to do any further processing
|
||||
return true;
|
||||
}
|
||||
|
||||
NS_tchar *slash = (NS_tchar *) NS_tstrrchr(installDir, NS_SLASH);
|
||||
// Make sure we're not looking at a trailing slash
|
||||
if (slash && slash[1] == NS_T('\0')) {
|
||||
|
Loading…
Reference in New Issue
Block a user