aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Traits.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-12-05 13:39:05 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-12-05 15:05:01 +0600
commit8bf164093296361c0936a9372fa199daabe4f6db (patch)
treeb27c266487f447af13f1466bb137a67dd7ea70d0 /src/fs/Traits.cxx
parentda50c888fe708b67f287bc211854c3e83f54ce9a (diff)
downloadmpd-8bf164093296361c0936a9372fa199daabe4f6db.tar.gz
mpd-8bf164093296361c0936a9372fa199daabe4f6db.tar.xz
mpd-8bf164093296361c0936a9372fa199daabe4f6db.zip
fs/Traits.cxx: don't return drive path without trailing separator
Diffstat (limited to '')
-rw-r--r--src/fs/Traits.cxx4
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);
}