windows: path_canon should yield c:/ not c:

This commit is contained in:
Jean-Francois Dockes 2017-02-08 18:37:47 +01:00
parent c5ca129db9
commit a8d5c2e73e

View File

@ -444,6 +444,14 @@ string path_canon(const string& is, const string* cwd)
} else { } else {
ret = "/"; ret = "/";
} }
#ifdef _WIN32
// Raw drive needs a final /
if (path_strlookslikedrive(ret)) {
path_catslash(ret);
}
#endif
return ret; return ret;
} }