diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 13:39:05 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 15:05:01 +0600 |
commit | 8bf164093296361c0936a9372fa199daabe4f6db (patch) | |
tree | b27c266487f447af13f1466bb137a67dd7ea70d0 | |
parent | da50c888fe708b67f287bc211854c3e83f54ce9a (diff) | |
download | mpd-8bf164093296361c0936a9372fa199daabe4f6db.tar.gz mpd-8bf164093296361c0936a9372fa199daabe4f6db.tar.xz mpd-8bf164093296361c0936a9372fa199daabe4f6db.zip |
fs/Traits.cxx: don't return drive path without trailing separator
-rw-r--r-- | src/fs/Traits.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/Traits.cxx b/src/fs/Traits.cxx index 934a9e2d0..3e874a224 100644 --- a/src/fs/Traits.cxx +++ b/src/fs/Traits.cxx @@ -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); } |