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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user