FCB (int 21h func 29h): should not accept field separator as "drive letter"

This commit is contained in:
tkchia 2022-07-16 05:59:30 +00:00 committed by Kenneth J Davis
parent 031f17068a
commit 7149a8efe4

View File

@ -110,7 +110,9 @@ UWORD FcbParseFname(UBYTE *wTestMode, const BYTE FAR * lpFileName, fcb FAR * lpF
/* Undocumented behavior: should keep parsing even if drive */ /* Undocumented behavior: should keep parsing even if drive */
/* specification is invalid -- tkchia 20220715 */ /* specification is invalid -- tkchia 20220715 */
if (*(lpFileName + 1) == ':') /* drive specification can refer to an invalid drive, but must */
/* not itself be a file name delimiter! -- tkchia 20220716 */
if (!TestFieldSeps(lpFileName) && *(lpFileName + 1) == ':')
{ {
/* non-portable construct to be changed */ /* non-portable construct to be changed */
REG UBYTE Drive = DosUpFChar(*lpFileName) - 'A'; REG UBYTE Drive = DosUpFChar(*lpFileName) - 'A';