1
0
Fork 0

Add Unit Number and Bytes Per Sector fields for DPB entries. Fixes Air Power installer and Windows 3 Virtual Memory dialog.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4168
This commit is contained in:
ripsaw8080 2018-10-11 15:05:28 +00:00
parent c3aca8dc44
commit 07c2d06ae5
5 changed files with 12 additions and 10 deletions

View file

@ -497,7 +497,7 @@ static Bitu DOS_21Handler(void) {
if (drive < DOS_DRIVES && Drives[drive] && !Drives[drive]->isRemovable()) {
reg_al = 0x00;
SegSet16(ds,dos.tables.dpb);
reg_bx = drive*5;//Faking the first entry (drive number) and media id
reg_bx = drive*9;
LOG(LOG_DOSMISC,LOG_ERROR)("Get drive parameter block.");
} else {
reg_al=0xff;