Skip to content

Commit

Permalink
Merge pull request #3776 from leecher1337/dosdev2
Browse files Browse the repository at this point in the history
Commit #3678 broke commit #3347
  • Loading branch information
joncampbell123 committed Oct 11, 2022
2 parents 9701de0 + 8ecbb48 commit c7fc7de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/dos/dos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1980,15 +1980,17 @@ static Bitu DOS_21Handler(void) {
else if(Files[handle]->GetInformation() & EXT_DEVICE_BIT) {
fRead = !(((DOS_ExtDevice*)Files[handle])->CallDeviceFunction(4, 26, SegValue(ds), reg_dx, toread) & 0x8000);
#if defined(USE_TTF)
fRead &= ttf.inUse && reg_bx == WPvga512CHMhandle;
if(fRead && ttf.inUse && reg_bx == WPvga512CHMhandle)
MEM_BlockRead(SegPhys(ds) + reg_dx, dos_copybuf, toread);
#endif
}
else {
fRead = DOS_ReadFile(reg_bx, dos_copybuf, &toread);
else
{
if(fRead = DOS_ReadFile(reg_bx, dos_copybuf, &toread))
MEM_BlockWrite(SegPhys(ds) + reg_dx, dos_copybuf, toread);
}

if (fRead) {
MEM_BlockWrite(SegPhys(ds) + reg_dx, dos_copybuf, toread);
reg_ax=toread;
#if defined(USE_TTF)
if (ttf.inUse && reg_bx == WPvga512CHMhandle) {
Expand Down

0 comments on commit c7fc7de

Please sign in to comment.