From 1c5db2e4823726a9824a1f496b5c5dbbd6e53712 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Sun, 15 Jun 2003 19:00:39 +0000 Subject: [PATCH] Small size optimization. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@599 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/fcbfns.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/fcbfns.c b/kernel/fcbfns.c index 7ea27f2..6942b13 100644 --- a/kernel/fcbfns.c +++ b/kernel/fcbfns.c @@ -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); }