adjust so FCB reads return data (fix loading of config file [assign.sys] by GEM versions that use FCBs)
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1374 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
65f8276a45
commit
0d16215fef
@ -251,8 +251,9 @@ UBYTE FcbReadWrite(xfcb FAR * lpXfcb, UCOUNT recno, int mode)
|
||||
|
||||
/* Convert to fcb if necessary */
|
||||
lpFcb = ExtFcbToFcb(lpXfcb);
|
||||
|
||||
recsiz = lpFcb->fcb_recsiz;
|
||||
bigsize = (ULONG)recsiz * recno;
|
||||
bigsize = (ULONG)recsiz * (recno+1);
|
||||
if (bigsize > 0xffff)
|
||||
return FCB_ERR_SEGMENT_WRAP;
|
||||
size = (unsigned)bigsize;
|
||||
@ -557,8 +558,8 @@ UBYTE FcbRename(xfcb FAR * lpXfcb)
|
||||
{
|
||||
if (*pFromPattern != '?')
|
||||
*pToName = *pFromPattern;
|
||||
pToName++;
|
||||
pFromPattern++;
|
||||
pToName++;
|
||||
pFromPattern++;
|
||||
}
|
||||
|
||||
SecPathName[0] = 'A' + FcbDrive - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user