diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/CORE/vdir.h')
-rw-r--r-- | Master/tlpkg/tlperl/lib/CORE/vdir.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/tlpkg/tlperl/lib/CORE/vdir.h b/Master/tlpkg/tlperl/lib/CORE/vdir.h index 9ff225eb16b..c21ec7c400a 100644 --- a/Master/tlpkg/tlperl/lib/CORE/vdir.h +++ b/Master/tlpkg/tlperl/lib/CORE/vdir.h @@ -334,7 +334,7 @@ inline bool IsSpecialFileName(const char* pName) break; case 'O': /* COMx, CON, CONIN$ CONOUT$ */ if ((pName[2] & ~0x20) == 'M') { - if ((pName[3] >= '1') && (pName[3] <= '9') + if ( inRANGE(pName[3], '1', '9') && !pName[4]) return true; } @@ -361,7 +361,7 @@ inline bool IsSpecialFileName(const char* pName) case 'L': /* LPTx */ if (((pName[1] & ~0x20) == 'U') && ((pName[2] & ~0x20) == 'X') - && (pName[3] >= '1') && (pName[3] <= '9') + && inRANGE(pName[3], '1', '9') && !pName[4]) return true; break; @@ -566,7 +566,7 @@ inline bool IsSpecialFileName(const WCHAR* pName) break; case 'O': /* COMx, CON, CONIN$ CONOUT$ */ if ((pName[2] & ~0x20) == 'M') { - if ((pName[3] >= '1') && (pName[3] <= '9') + if ( inRANGE(pName[3], '1', '9') && !pName[4]) return true; } @@ -593,7 +593,7 @@ inline bool IsSpecialFileName(const WCHAR* pName) case 'L': /* LPTx */ if (((pName[1] & ~0x20) == 'U') && ((pName[2] & ~0x20) == 'X') - && (pName[3] >= '1') && (pName[3] <= '9') + && inRANGE(pName[3], '1', '9') && !pName[4]) return true; break; |