Skip to content

Commit

Permalink
Merge pull request #631 from aapanfilovv/master
Browse files Browse the repository at this point in the history
Fix signature of resolve_legacy for Windows 7 target
  • Loading branch information
ChrisDenton authored May 30, 2024
2 parents 5e05efa + 509d48a commit 9b7c378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/symbolize/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ unsafe fn resolve_legacy(
addr: *mut c_void,
_inline_context: Option<DWORD>,
cb: &mut dyn FnMut(&super::Symbol),
) {
) -> Option<()> {
let addr = super::adjust_ip(addr) as DWORD64;
do_resolve(
|info| dbghelp.SymFromAddrW()(GetCurrentProcess(), addr, &mut 0, info),
|line| dbghelp.SymGetLineFromAddrW64()(GetCurrentProcess(), addr, &mut 0, line),
cb,
)
);
Some(())
}

/// Resolve the address using the modern dbghelp APIs.
Expand Down

0 comments on commit 9b7c378

Please sign in to comment.