mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
Update INT 2Fh function to use Sft header+entry size constants
This commit is contained in:
@@ -148,7 +148,7 @@ static bool DOS_MultiplexFunctions(void) {
|
||||
if (reg_bx<16) {
|
||||
RealPt sftrealpt=mem_readd(Real2Phys(dos_infoblock.GetPointer())+4);
|
||||
PhysPt sftptr=Real2Phys(sftrealpt);
|
||||
uint32_t sftofs=0x06u+reg_bx*0x3bu;
|
||||
uint32_t sftofs = SftHeaderSize + reg_bx*SftEntrySize;
|
||||
|
||||
if (Files[reg_bx]) mem_writeb(sftptr+sftofs, (uint8_t)(Files[reg_bx]->refCtr));
|
||||
else mem_writeb(sftptr+sftofs,0);
|
||||
|
Reference in New Issue
Block a user