windows: slashize input in path_absolute() (fixes -c option needing forward /)
This commit is contained in:
parent
9058dc5c3d
commit
68a7ac61a0
1 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,9 @@ string path_absolute(const string& is)
|
|||
return is;
|
||||
}
|
||||
string s = is;
|
||||
#ifdef _WIN32
|
||||
path_slashize(s);
|
||||
#endif
|
||||
if (!path_isabsolute(s)) {
|
||||
char buf[MAXPATHLEN];
|
||||
if (!getcwd(buf, MAXPATHLEN)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue