(set_paths) [_WIN32]: Add a comment to explain the use of _fullpath().
This commit is contained in:
parent
be8e1d068e
commit
bca365c485
1 changed files with 1 additions and 0 deletions
|
@ -181,6 +181,7 @@ set_paths(char *econfig)
|
|||
char *cwd = getcwd(NULL, 0);
|
||||
|
||||
#ifdef _WIN32
|
||||
/* normalize path separator to '\\', for easier searching: */
|
||||
econfig = _fullpath(NULL, econfig, 0);
|
||||
slash = strrchr(econfig, '\\');
|
||||
configdir = malloc(slash - econfig + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue