Remove the wildcard check for DosChangeDir() because truename() already does

that.


git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1476 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2009-07-06 20:26:27 +00:00
parent 5ad1fd51e1
commit 1f17a5e5da

View File

@ -907,18 +907,10 @@ COUNT DosGetCuDir(UBYTE drive, BYTE FAR * s)
COUNT DosChangeDir(BYTE FAR * s)
{
COUNT result;
BYTE FAR *p;
/* don't do wildcard CHDIR --TE */
for (p = s; *p; p++)
if (*p == '*' || *p == '?')
return DE_PATHNOTFND;
result = truename(s, PriPathName, CDS_MODE_CHECK_DEV_PATH);
if (result < SUCCESS)
{
return result;
}
if ((FP_OFF(current_ldt) != 0xFFFF) &&
(strlen(PriPathName) >= sizeof(current_ldt->cdsCurrentPath)))