Fix AHCIBootDVDProbeAll buffer read error try catch.

This commit is contained in:
TomAwezome 2022-04-01 13:01:22 -04:00
parent a25b7fd03f
commit 675b9c1f42

View file

@ -1153,12 +1153,6 @@ Bool AHCIBootDVDProbeAll(CBlkDev *bd)
AHCIPortInit(bd, port, i);
AHCIAtapiBlksRead(bd, buf, sys_boot_blk, 1, FALSE);
}
catch
{
Fs->catch_except = TRUE;
"AHCI: Error at Port %d", i;
}
kernel = buf + sys_boot_src.u16[1] << BLK_SIZE_BITS;
@ -1171,6 +1165,12 @@ Bool AHCIBootDVDProbeAll(CBlkDev *bd)
else
"AHCI: Did not find matching sys_compile_time on Port %d\n", i;
}
catch
{
Fs->catch_except = TRUE;
"AHCI: Error at Port %d\n", i;
}
}
}
}