зеркало из https://github.com/mozilla/gecko-dev.git
Bug 757981 - Make sure to use the correct installation directory for regular updates; r=bbondy
This commit is contained in:
Родитель
06d559fed3
Коммит
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')) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче