зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1722777 - Pre: files contained within a folder implicitly must have a longer path; make this explicit for clarity. r=nalexander
Depends on D140910 Differential Revision: https://phabricator.services.mozilla.com/D140911
This commit is contained in:
Родитель
38f65972b7
Коммит
79aad2eea4
|
@ -3080,8 +3080,8 @@ nsLocalFile::Contains(nsIFile* aInFile, bool* aResult) {
|
|||
aInFile->GetPath(inFilePath);
|
||||
}
|
||||
|
||||
// make sure that the |aInFile|'s path has a trailing separator.
|
||||
if (inFilePath.Length() >= myFilePathLen &&
|
||||
// Make sure that the |aInFile|'s path has a trailing separator.
|
||||
if (inFilePath.Length() > myFilePathLen &&
|
||||
inFilePath[myFilePathLen] == L'\\') {
|
||||
if (_wcsnicmp(myFilePath.get(), inFilePath.get(), myFilePathLen) == 0) {
|
||||
*aResult = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче