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

git-svn-id: svn://10.0.0.236/trunk@175757 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bsmedberg%covad.net
2005-07-07 16:19:20 +00:00
parent eb2d5af28f
commit 025d273bae

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