windows: slashize input in path_absolute() (fixes -c option needing forward /)
This commit is contained in:
parent
5bff2be571
commit
4538522b5b
@ -364,6 +364,9 @@ string path_absolute(const string& is)
|
|||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
string s = is;
|
string s = is;
|
||||||
|
#ifdef _WIN32
|
||||||
|
path_slashize(s);
|
||||||
|
#endif
|
||||||
if (!path_isabsolute(s)) {
|
if (!path_isabsolute(s)) {
|
||||||
char buf[MAXPATHLEN];
|
char buf[MAXPATHLEN];
|
||||||
if (!getcwd(buf, MAXPATHLEN)) {
|
if (!getcwd(buf, MAXPATHLEN)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user