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:
Nicholas Rishel 2022-03-22 00:28:23 +00:00
Родитель 38f65972b7
Коммит 79aad2eea4
1 изменённых файлов: 2 добавлений и 2 удалений

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

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