bug 240272 : additional patch (fix off-by-two error) r=ben

This commit is contained in:
jshin@mailaps.org
2004-08-10 05:55:08 +00:00
parent 7a55dc9942
commit 31db3bb790

View File

@@ -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;