1
0
Fork 0

Return correct error code for verify sectors function when an invalid drive is specified. Fixes Hugo Troll game installers.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4137
This commit is contained in:
ripsaw8080 2018-08-17 14:28:56 +00:00
parent 01e3789c49
commit dd304cbef1

View file

@ -325,6 +325,8 @@ static Bitu INT13_DiskHandler(void) {
//drivenum = 0;
//LOG_MSG("INT13: Function %x called on drive %x (dos drive %d)", reg_ah, reg_dl, drivenum);
// NOTE: the 0xff error code returned in some cases is questionable; 0x01 seems more correct
switch(reg_ah) {
case 0x0: /* Reset disk */
{
@ -440,7 +442,10 @@ static Bitu INT13_DiskHandler(void) {
CALLBACK_SCF(true);
return CBRET_NONE;
}
if(driveInactive(drivenum)) return CBRET_NONE;
if(driveInactive(drivenum)) {
reg_ah = last_status;
return CBRET_NONE;
}
/* TODO: Finish coding this section */
/*