MS-DOS does not update BX if INT 21 AH=4Ah returns error 7 (MCB destroyed)

This commit is contained in:
Jonathan Campbell
2025-10-07 08:04:13 -07:00
parent 16f4c85323
commit 6ed963d9a0

View File

@@ -2290,7 +2290,7 @@ static Bitu DOS_21Handler(void) {
CALLBACK_SCF(false);
} else {
reg_ax=dos.errorcode;
reg_bx=size;
if (dos.errorcode != 7) reg_bx=size; /* Real MS-DOS does not appear to update BX for error 7 */
CALLBACK_SCF(true);
}
break;