mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 03:49:37 +00:00
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:
parent
f6b2efecfd
commit
d4eafe5027
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user