Bug 297312 - nsILocalFile (windows) .equals is case-sensitive, which is causing problems with contains() and relativedescriptors - I'm not going to commit the rest of that patch (nsIPersistentDescriptorService) until the code that uses it is also written r=shaver a=asa

This commit is contained in:
bsmedberg%covad.net 2005-07-07 16:19:20 +00:00
parent f6b2efecfd
commit d4eafe5027

View File

@ -2160,7 +2160,8 @@ nsLocalFile::Equals(nsIFile *inFile, PRBool *_retval)
nsCAutoString inFilePath;
inFile->GetNativePath(inFilePath);
*_retval = inFilePath.Equals(mWorkingPath);
*_retval = (_mbsicmp((unsigned char*) inFilePath.get(),
(unsigned char*) mWorkingPath.get()) == 0);
return NS_OK;
}