Add support for backslash as drive root for full path logs
This commit is contained in:
parent
df6e3fd953
commit
33e0840294
|
@ -581,7 +581,11 @@ logmask_is_fullpath ()
|
||||||
* colons in filenames.
|
* colons in filenames.
|
||||||
*/
|
*/
|
||||||
#ifdef WIN32
|
#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
|
#else
|
||||||
if (prefs.logmask[0] == '/')
|
if (prefs.logmask[0] == '/')
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue