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;
|
||||||
|
Loading…
Reference in New Issue
Block a user