1
0
Fork 0

fixed a bug.

the return code of dos_fcbwrite was misinterpretted


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@476
This commit is contained in:
Peter Veenstra 2002-11-04 19:04:13 +00:00
parent 4f86bdfe26
commit a3c48a1303
3 changed files with 7 additions and 8 deletions

View file

@ -244,8 +244,7 @@ static Bitu DOS_21Handler(void) {
LOG_DEBUG("DOS:0x27 FCB-Random read used, result:al=%d",reg_al);
break;
case 0x28: /* Random Block write to FCB */
if (DOS_FCBRandomWrite(SegValue(ds),reg_dx,reg_cx,false)) reg_al = 0x00;
else reg_al = 0x01;
reg_al=DOS_FCBRandomWrite(SegValue(ds),reg_dx,reg_cx,false);
LOG_DEBUG("DOS:0x28 FCB-Random write used, result:al=%d",reg_al);
break;
case 0x29: /* Parse filename into FCB */