Skip to content

Commit

Permalink
Fix signature of resolve_legacy for Windows 7 target
Browse files Browse the repository at this point in the history
  • Loading branch information
aapanfilovv authored May 30, 2024
1 parent 5e05efa commit 509d48a
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 509d48a

Please sign in to comment.