mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-25 14:54:28 +02:00
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,16 +108,12 @@ 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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user