Eliminate DosGetFile -- it is no longer necessary because the filename
is already copied from the fnode. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1407 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
9a415b14b2
commit
896908d6f7
@ -138,15 +138,6 @@ struct dpb FAR * GetDriveDPB(UBYTE drive, COUNT * rc)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Construct dir-style filename for ASCIIZ 8.3 name */
|
|
||||||
STATIC VOID DosGetFile(BYTE * lpszPath, BYTE FAR * lpszDosFileName)
|
|
||||||
{
|
|
||||||
char fcbname[FNAME_SIZE + FEXT_SIZE];
|
|
||||||
|
|
||||||
ParseDosName(lpszPath, fcbname, FALSE);
|
|
||||||
fmemcpy(lpszDosFileName, fcbname, FNAME_SIZE + FEXT_SIZE);
|
|
||||||
}
|
|
||||||
|
|
||||||
int idx_to_sft_(int SftIndex)
|
int idx_to_sft_(int SftIndex)
|
||||||
{
|
{
|
||||||
/*called from below and int2f/ax=1216*/
|
/*called from below and int2f/ax=1216*/
|
||||||
@ -591,7 +582,6 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib)
|
|||||||
return DE_ACCESS;
|
return DE_ACCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DosGetFile(PriPathName, sftp->sft_name);
|
|
||||||
return sft_idx | ((long)result << 16);
|
return sft_idx | ((long)result << 16);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user