Correct errors

This commit is contained in:
Jaby 2022-11-16 03:47:22 +01:00 committed by Jaby
parent eac5a4f349
commit e5eec344a4
1 changed files with 2 additions and 2 deletions

View File

@ -115,10 +115,10 @@ fn process_system_area(system_area: &SystemArea, sec_writer: &mut dyn SectorWrit
} }
fn write_license_logo(sec_writer: &mut dyn SectorWriter, license_file: &mut BufferedInputFile) -> Result<(), Error> { fn write_license_logo(sec_writer: &mut dyn SectorWriter, license_file: &mut BufferedInputFile) -> Result<(), Error> {
const LICENSE_LOGO_START:u64 = 0x2488; const LICENSE_LOGO_START:u64 = 0x2DA8;
license_file.seek(SeekFrom::Start(LICENSE_LOGO_START))?; license_file.seek(SeekFrom::Start(LICENSE_LOGO_START))?;
for _ in 0..4 { for _ in 0..7 {
const LICENSE_SECTOR_REST:i64 = 0x120; const LICENSE_SECTOR_REST:i64 = 0x120;
let mut license_logo_buffer = [0u8; Mode2Form1::DATA_SIZE]; let mut license_logo_buffer = [0u8; Mode2Form1::DATA_SIZE];