diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-04 15:42:44 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-04 15:42:44 +0200 |
commit | 33e084029497741463d40bcf97073a1c3b78858c (patch) | |
tree | 14a75d9f60531fdedc7882c54f8c7ae95d3b93e4 /src | |
parent | df6e3fd9535eee221d56bd8c48fa458e67bb263c (diff) |
Add support for backslash as drive root for full path logs
Diffstat (limited to 'src')
-rw-r--r-- | src/common/text.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/text.c b/src/common/text.c index c6d2c850..0e8cbc3a 100644 --- a/src/common/text.c +++ b/src/common/text.c @@ -581,7 +581,11 @@ logmask_is_fullpath () * colons in filenames. */ #ifdef WIN32 - if ((prefs.logmask[0] >= 'A' && prefs.logmask[0] <= 'Z') || (prefs.logmask[0] >= 'a' && prefs.logmask[0] <= 'z') && prefs.logmask[1] == ':') + /* Treat it as full path if it + * - starts with '\' which denotes the root directory of the current drive letter + * - starts with a drive letter and followed by ':' + */ + if (prefs.logmask[0] >= '\\' || ((prefs.logmask[0] >= 'A' && prefs.logmask[0] <= 'Z') || (prefs.logmask[0] >= 'a' && prefs.logmask[0] <= 'z') && prefs.logmask[1] == ':')) #else if (prefs.logmask[0] == '/') #endif |