fs/Traits.cxx: don't return drive path without trailing separator
This commit is contained in:
parent
da50c888fe
commit
8bf1640932
@ -71,6 +71,10 @@ GetParentPathImpl(typename Traits::const_pointer p)
|
|||||||
return typename Traits::string(".");
|
return typename Traits::string(".");
|
||||||
if (sep == p)
|
if (sep == p)
|
||||||
return typename Traits::string(p, p + 1);
|
return typename Traits::string(p, p + 1);
|
||||||
|
#ifdef WIN32
|
||||||
|
if (Traits::IsDrive(p) && sep == p + 2)
|
||||||
|
return typename Traits::string(p, p + 3);
|
||||||
|
#endif
|
||||||
return typename Traits::string(p, sep);
|
return typename Traits::string(p, sep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user