Skip to content

Commit

Permalink
Apply review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed Mar 30, 2019
1 parent 444a0c0 commit 3fb9476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pe/exception.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ impl<'a> ExceptionData<'a> {
) -> error::Result<UnwindInfo<'a>> {
while function.unwind_info_address % 2 != 0 {
let rva = (function.unwind_info_address & !1) as usize;
function = self.get_function_at(rva, sections)?;
function = self.get_function_by_rva(rva, sections)?;
}

let rva = function.unwind_info_address as usize;
Expand All @@ -783,7 +783,7 @@ impl<'a> ExceptionData<'a> {
UnwindInfo::parse(self.bytes, offset)
}

fn get_function_at(
fn get_function_by_rva(
&self,
rva: usize,
sections: &[section_table::SectionTable],
Expand Down

0 comments on commit 3fb9476

Please sign in to comment.