mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
remove single "." entries from paths
svn path=/trunk/; revision=17585
This commit is contained in:
@@ -223,12 +223,15 @@ Path::Split ( vector<string>& out,
|
||||
out.resize ( 0 );
|
||||
while ( p )
|
||||
{
|
||||
out.push_back ( prev );
|
||||
if ( strcmp ( prev, "." ) )
|
||||
out.push_back ( prev );
|
||||
prev = p;
|
||||
p = strtok ( NULL, "/\\" );
|
||||
}
|
||||
if ( include_last )
|
||||
out.push_back ( prev );
|
||||
if ( out.back() == "." )
|
||||
out.pop_back();
|
||||
}
|
||||
|
||||
XMLFile::XMLFile()
|
||||
|
||||
Reference in New Issue
Block a user