mirror of https://github.com/FDOS/kernel.git
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:
parent
69faceffe5
commit
329c7c6e6a
|
@ -108,18 +108,14 @@ int ParseDosName(const char *filename, char *fcbname, BOOL bAllowWildcards)
|
|||
|
||||
if (nFileCnt == 0)
|
||||
{
|
||||
/* Lixing Yuan Patch */
|
||||
if (bAllowWildcards) /* for find first */
|
||||
{
|
||||
if (*filename != '\0')
|
||||
return DE_FILENOTFND;
|
||||
memset(fcbname, '?', FNAME_SIZE + FEXT_SIZE);
|
||||
return nDirCnt;
|
||||
}
|
||||
else
|
||||
return DE_FILENOTFND;
|
||||
int err = DE_PATHNOTFND;
|
||||
if (bAllowWildcards && *filename == '\0' &&
|
||||
(nDirCnt == 3 || filename[-1] != '\\'))
|
||||
/* D:\ or D:\DOS but not D:\DOS\ */
|
||||
err = DE_NFILES;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/* Now we have pointers set to the directory portion and the */
|
||||
/* file portion. Now determine the existance of an extension. */
|
||||
lpszLclExt = filename;
|
||||
|
|
Loading…
Reference in New Issue