From dbfa44db9cb2674e590c8c9d7bad2feace93fd44 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 27 Dec 2019 19:52:17 -0500 Subject: iso_9660_parse_ph --- src/kernel/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/files.c') diff --git a/src/kernel/files.c b/src/kernel/files.c index 8064518..9747688 100644 --- a/src/kernel/files.c +++ b/src/kernel/files.c @@ -27,7 +27,7 @@ bool (*const parse_pts[N_PT_FORMATS])(uint8_t dn, uint8_t *buffer) = { //&mbr_parse_pt }; -bool (*const parse_phs[N_FS_FORMATS])(uint8_t dn, uint32_t sector, uint8_t *buffer) = { +bool (*const parse_phs[N_FS_FORMATS])(uint8_t dn, uint8_t pn, uint32_t sector, uint8_t *buffer) = { &iso_9660_parse_ph }; @@ -90,7 +90,7 @@ void detect_disk_parts(uint8_t drive) { update_status(dn); if (drives[dn].flags & (PRESENT | DISK_IN)) { /*ISO 9660 often comes with a dummy MBR*/ - if (iso_9660_parse_ph(dn, 0, buffer)) { + if (iso_9660_parse_ph(dn, 0, 0, buffer)) { part_info[dn].format = DIRECT; part_info[dn].n_partitions = 1; return; @@ -99,7 +99,7 @@ void detect_disk_parts(uint8_t drive) { if (parse_pts[ptt](dn, buffer)) return; for (uint8_t fst = 0; fst < N_FS_FORMATS; ++fst) - if (parse_phs[fst](dn, 0, buffer)) { + if (parse_phs[fst](dn, 0, 0, buffer)) { part_info[dn].format = DIRECT; part_info[dn].n_partitions = 1; return; -- cgit v1.2.3