From 896908d6f78cd32b88ec4b76ea1785448b5afe96 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Tue, 26 May 2009 21:09:56 +0000 Subject: [PATCH] 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 --- kernel/dosfns.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kernel/dosfns.c b/kernel/dosfns.c index f5b6b02..839772d 100644 --- a/kernel/dosfns.c +++ b/kernel/dosfns.c @@ -138,15 +138,6 @@ struct dpb FAR * GetDriveDPB(UBYTE drive, COUNT * rc) } #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) { /*called from below and int2f/ax=1216*/ @@ -591,7 +582,6 @@ long DosOpenSft(char FAR * fname, unsigned flags, unsigned attrib) return DE_ACCESS; } } - DosGetFile(PriPathName, sftp->sft_name); return sft_idx | ((long)result << 16); } else