bug 240272 : additional patch (fix off-by-two error) r=ben
This commit is contained in:
@@ -267,7 +267,7 @@ nsWindowsShellService::IsDefaultBrowser(PRBool aStartupCheck, PRBool* aIsDefault
|
||||
nsCAutoString exeName;
|
||||
if (pathSep) {
|
||||
PRInt32 n = pathSep - buf;
|
||||
exeName = Substring(appPath, n + 1, appPath.Length() - (n - 1));
|
||||
exeName = Substring(appPath, n + 1, appPath.Length() - (n + 1));
|
||||
}
|
||||
else
|
||||
exeName = appPath;
|
||||
@@ -334,7 +334,7 @@ nsWindowsShellService::SetDefaultBrowser(PRBool aClaimAllTypes, PRBool aForAllUs
|
||||
nsCAutoString exeName;
|
||||
if (pathSep) {
|
||||
PRInt32 n = pathSep - buf;
|
||||
exeName = Substring(appPath, n + 1, appPath.Length() - (n - 1));
|
||||
exeName = Substring(appPath, n + 1, appPath.Length() - (n + 1));
|
||||
}
|
||||
else
|
||||
exeName = appPath;
|
||||
|
||||
Reference in New Issue
Block a user