revert this change - does not seem correct testing with MSDOS 5 and 6
original commit notes 'Fix an error at opening a character device prefixed with invalid drive letter (e.g. "@:NUL") (some application use it for opening character device driver)', need to test case but breaks TRUENAME asis
This commit is contained in:
parent
e341cce4ed
commit
77b36d2458
@ -304,16 +304,6 @@ COUNT truename(const char FAR * src, char * dest, COUNT mode)
|
||||
cdsEntry = get_cds(result);
|
||||
if (cdsEntry == NULL)
|
||||
{
|
||||
/* workaround for a device prefixed with invalid drive (e.g. "@:NUL") */
|
||||
/* (MS-DOS always return drive P: for invalid drive. Why P:?) */
|
||||
if (dhp)
|
||||
{
|
||||
result = default_drive;
|
||||
cdsEntry = get_cds(result);
|
||||
if (cdsEntry == NULL)
|
||||
return DE_PATHNOTFND;
|
||||
}
|
||||
else
|
||||
return DE_PATHNOTFND;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user