fs/Traits.cxx: don't return drive path without trailing separator

This commit is contained in:
Denis Krjuchkov 2013-12-05 13:39:05 +06:00
parent da50c888fe
commit 8bf1640932

View File

@ -71,6 +71,10 @@ GetParentPathImpl(typename Traits::const_pointer p)
return typename Traits::string(".");
if (sep == p)
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);
}