mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-23 22:04:33 +02:00
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 */
|
/* Convert to fcb if necessary */
|
||||||
lpFcb = ExtFcbToFcb(lpXfcb);
|
lpFcb = ExtFcbToFcb(lpXfcb);
|
||||||
|
|
||||||
recsiz = lpFcb->fcb_recsiz;
|
recsiz = lpFcb->fcb_recsiz;
|
||||||
bigsize = (ULONG)recsiz * recno;
|
bigsize = (ULONG)recsiz * (recno+1);
|
||||||
if (bigsize > 0xffff)
|
if (bigsize > 0xffff)
|
||||||
return FCB_ERR_SEGMENT_WRAP;
|
return FCB_ERR_SEGMENT_WRAP;
|
||||||
size = (unsigned)bigsize;
|
size = (unsigned)bigsize;
|
||||||
@ -557,8 +558,8 @@ UBYTE FcbRename(xfcb FAR * lpXfcb)
|
|||||||
{
|
{
|
||||||
if (*pFromPattern != '?')
|
if (*pFromPattern != '?')
|
||||||
*pToName = *pFromPattern;
|
*pToName = *pFromPattern;
|
||||||
pToName++;
|
pToName++;
|
||||||
pFromPattern++;
|
pFromPattern++;
|
||||||
}
|
}
|
||||||
|
|
||||||
SecPathName[0] = 'A' + FcbDrive - 1;
|
SecPathName[0] = 'A' + FcbDrive - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user