BUG: IsSubDirectory should use ComparePath to do platform-independent path comparison.
This commit is contained in:
parent
0005d625a0
commit
dbd70091f1
@ -3466,7 +3466,7 @@ bool SystemTools::IsSubDirectory(const char* cSubdir, const char* cDir)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
path = SystemTools::GetParentDirectory(path.c_str());
|
path = SystemTools::GetParentDirectory(path.c_str());
|
||||||
if ( dir == path )
|
if(SystemTools::ComparePath(dir.c_str(), path.c_str()))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user