mirror of https://github.com/FDOS/kernel.git
Small size optimization.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@599 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
bdc63c1ff0
commit
1c5db2e482
|
@ -451,6 +451,7 @@ int FcbNameInit(fcb FAR * lpFcb, BYTE * szBuffer, COUNT * pCurDrive)
|
|||
BYTE *pszBuffer = loc_szBuffer;
|
||||
|
||||
/* Build a traditional DOS file name */
|
||||
*pCurDrive = default_drive + 1;
|
||||
if (lpFcb->fcb_drive != 0)
|
||||
{
|
||||
*pCurDrive = lpFcb->fcb_drive;
|
||||
|
@ -458,10 +459,6 @@ int FcbNameInit(fcb FAR * lpFcb, BYTE * szBuffer, COUNT * pCurDrive)
|
|||
pszBuffer[1] = ':';
|
||||
pszBuffer += 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
*pCurDrive = default_drive + 1;
|
||||
}
|
||||
ConvertName83ToNameSZ(pszBuffer, lpFcb->fcb_fname);
|
||||
return truename(loc_szBuffer, szBuffer, CDS_MODE_CHECK_DEV_PATH|CDS_MODE_ALLOW_WILDCARDS);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue