morpheus_bootloader::uefi::file_system::operations

Function restore_pe_image_base

Source
pub fn restore_pe_image_base(pe_data: &mut [u8]) -> Result<(), ()>
Expand description

Restore original ImageBase in PE header UEFI relocates executables and modifies the ImageBase field - we need to restore it