Commit 073e7bd0 authored by Brad King's avatar Brad King
Browse files

BUG: IsSubDirectory should use ComparePath to do platform-independent path comparison.

parent 43015f06
......@@ -3466,7 +3466,7 @@ bool SystemTools::IsSubDirectory(const char* cSubdir, const char* cDir)
path = SystemTools::GetParentDirectory(path.c_str());
if ( dir == path )
if(SystemTools::ComparePath(dir.c_str(), path.c_str()))
return true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment