mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-03-15 04:25:06 +00:00
Fix AHCIBootDVDProbeAll buffer read error try catch.
This commit is contained in:
parent
a25b7fd03f
commit
675b9c1f42
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue