From cc63506b03cd369633be95c3eb7b6ab76056210b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 15 Feb 2009 11:26:00 +0000 Subject: [PATCH] FileLister: handle '\\' path separator the same way '/' is handled --- src/filelister.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filelister.cpp b/src/filelister.cpp index 5baea0065..d8260aab1 100644 --- a/src/filelister.cpp +++ b/src/filelister.cpp @@ -41,7 +41,7 @@ std::string FileLister::simplifyPath(const char *originalPath) std::vector pathParts; for (; *originalPath; ++originalPath) { - if (*originalPath == '/') + if (*originalPath == '/' || *originalPath == '\\') { if (subPath.length() > 0) { @@ -49,7 +49,7 @@ std::string FileLister::simplifyPath(const char *originalPath) subPath = ""; } - pathParts.push_back("/"); + pathParts.push_back(std::string(1 , *originalPath)); } else subPath.append(1, *originalPath);