DosChangeDir can only return DE_PATHNOTFND in case of error, so force that
error code. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1477 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
1f17a5e5da
commit
f26372a241
@ -910,7 +910,7 @@ COUNT DosChangeDir(BYTE FAR * s)
|
||||
|
||||
result = truename(s, PriPathName, CDS_MODE_CHECK_DEV_PATH);
|
||||
if (result < SUCCESS)
|
||||
return result;
|
||||
return DE_PATHNOTFND;
|
||||
|
||||
if ((FP_OFF(current_ldt) != 0xFFFF) &&
|
||||
(strlen(PriPathName) >= sizeof(current_ldt->cdsCurrentPath)))
|
||||
|
Loading…
Reference in New Issue
Block a user