remove trailing backslash in windows parentdir
This commit is contained in:
parent
caa6caf381
commit
e2d6cc0bfe
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ stratagus-game-launcher.h - Stratagus Game Launcher
|
|||
#define stat _stat
|
||||
#define strdup _strdup
|
||||
#define mkdir(f, m) _mkdir(f)
|
||||
#define parentdir(x) PathRemoveFileSpec(x)
|
||||
// PathRemoveFileSpec on a drive (e.g. when extracting from CD) will leave the trailing \... remove that
|
||||
#define parentdir(x) PathRemoveFileSpec(x); if (x[strlen(x) - 1] == '\\') x[strlen(x) - 1] = '\0'
|
||||
#define execvp _execvp
|
||||
#define unlink(x) _unlink(x)
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue