Commit 8bf16409 authored by Denis Krjuchkov's avatar Denis Krjuchkov

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

parent da50c888
......@@ -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);
}
......
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