Support \ paths within filenames.

This commit is contained in:
Unknown W. Brackets 2013-10-19 17:06:29 -07:00
parent 9c59990edc
commit 3499ef341a

View File

@ -29,7 +29,8 @@ static bool ApplyPathStringToComponentsVector(std::vector<std::string> &vector,
while (start < len)
{
size_t i = pathString.find('/', start);
// TODO: This should only be done for ms0:/ etc.
size_t i = pathString.find_first_of('/\\', start);
if (i == std::string::npos)
i = len;