mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:26:02 +00:00
remove single "." entries from paths
svn path=/trunk/; revision=17585
This commit is contained in:
parent
2b121dc93c
commit
b17534dfa0
1 changed files with 4 additions and 1 deletions
|
@ -223,12 +223,15 @@ Path::Split ( vector<string>& out,
|
||||||
out.resize ( 0 );
|
out.resize ( 0 );
|
||||||
while ( p )
|
while ( p )
|
||||||
{
|
{
|
||||||
out.push_back ( prev );
|
if ( strcmp ( prev, "." ) )
|
||||||
|
out.push_back ( prev );
|
||||||
prev = p;
|
prev = p;
|
||||||
p = strtok ( NULL, "/\\" );
|
p = strtok ( NULL, "/\\" );
|
||||||
}
|
}
|
||||||
if ( include_last )
|
if ( include_last )
|
||||||
out.push_back ( prev );
|
out.push_back ( prev );
|
||||||
|
if ( out.back() == "." )
|
||||||
|
out.pop_back();
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLFile::XMLFile()
|
XMLFile::XMLFile()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue