Skip to content

Commit b8ef68f

Browse files
committed
add missing test for write before invalidating buffer in INT25,26 handler
1 parent 8d29d66 commit b8ef68f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/inthndlr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,8 @@ VOID ASMCFUNC int2526_handler(WORD mode, struct int25regs FAR * r)
18601860

18611861
InDOS++;
18621862

1863-
DeleteBlockInBufferCache(blkno, blkno, drv, XFR_WRITE);
1863+
if (mode == DSKWRITEINT26)
1864+
DeleteBlockInBufferCache(blkno, blkno, drv, XFR_WRITE);
18641865
r->ax = dskxfer(drv, blkno, buf, nblks, mode);
18651866

18661867
CLEAR_CARRY_FLAG();

0 commit comments

Comments
 (0)