Windows special system directories should preserve case b=221872 r=darin sr=dougt

This commit is contained in:
brofield%jellycan.com 2004-07-05 02:15:07 +00:00
Родитель 2ce73bcfc2
Коммит 5bc3cafffc
3 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -121,7 +121,6 @@ function chooseProfileFolder()
// Disable the "Default Folder..." button when the default profile folder
// was selected manually in the File Picker.
// This is always false on Windows, until bug 221872 is fixed.
document.getElementById("useDefault").disabled = (newProfileRoot.equals(gProfile.defaultProfileParentDir));
setDisplayToFolder(newProfileRoot);

Просмотреть файл

@ -101,7 +101,6 @@ function chooseProfileFolder()
// Disable the "Default Folder..." button when the default profile folder
// was selected manually in the File Picker.
// This is always false on Windows, until bug 221872 is fixed.
document.getElementById("useDefault").disabled =
(newProfileRoot.parent.equals(gDefaultProfileParent));

Просмотреть файл

@ -169,7 +169,7 @@ static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile)
path[len + 1] = '\0';
}
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -202,7 +202,7 @@ static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile)
pBuffer[len + 1] = '\0';
// Assign the directory
rv = NS_NewNativeLocalFile(nsDependentCString(CharUpper(pBuffer)),
rv = NS_NewNativeLocalFile(nsDependentCString(pBuffer),
PR_TRUE,
aFile);
@ -246,7 +246,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
path[3] = 0;
}
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -278,7 +278,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
{
char path[_MAX_PATH];
DWORD len = GetTempPath(_MAX_PATH, path);
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -414,7 +414,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
path[len] = '\\';
path[len+1] = '\0';
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -431,7 +431,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
path[len] = '\\';
path[len+1] = '\0';
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -449,7 +449,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
path[len] = '\\';
path[len+1] = '\0';
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}
@ -469,7 +469,7 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
path[len] = '\\';
path[len+1] = '\0';
return NS_NewNativeLocalFile(nsDependentCString(CharUpper(path)),
return NS_NewNativeLocalFile(nsDependentCString(path),
PR_TRUE,
aFile);
}