windows: path_canon should yield c:/ not c:
This commit is contained in:
parent
c5ca129db9
commit
a8d5c2e73e
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user