Remove wrong automatic "*.*" code from Lixing Yuan -- return DE_PATHNOTFND

or D_NFILES instead (mostly from Lucho)


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@800 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2004-03-17 22:04:40 +00:00
parent 69faceffe5
commit 329c7c6e6a

View File

@ -108,18 +108,14 @@ int ParseDosName(const char *filename, char *fcbname, BOOL bAllowWildcards)
if (nFileCnt == 0) if (nFileCnt == 0)
{ {
/* Lixing Yuan Patch */ int err = DE_PATHNOTFND;
if (bAllowWildcards) /* for find first */ if (bAllowWildcards && *filename == '\0' &&
{ (nDirCnt == 3 || filename[-1] != '\\'))
if (*filename != '\0') /* D:\ or D:\DOS but not D:\DOS\ */
return DE_FILENOTFND; err = DE_NFILES;
memset(fcbname, '?', FNAME_SIZE + FEXT_SIZE); return err;
return nDirCnt;
}
else
return DE_FILENOTFND;
} }
/* Now we have pointers set to the directory portion and the */ /* Now we have pointers set to the directory portion and the */
/* file portion. Now determine the existance of an extension. */ /* file portion. Now determine the existance of an extension. */
lpszLclExt = filename; lpszLclExt = filename;