Skip to content

Commit 509d48a

Browse files
authored
Fix signature of resolve_legacy for Windows 7 target
1 parent 5e05efa commit 509d48a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/symbolize/dbghelp.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,14 @@ unsafe fn resolve_legacy(
128128
addr: *mut c_void,
129129
_inline_context: Option<DWORD>,
130130
cb: &mut dyn FnMut(&super::Symbol),
131-
) {
131+
) -> Option<()> {
132132
let addr = super::adjust_ip(addr) as DWORD64;
133133
do_resolve(
134134
|info| dbghelp.SymFromAddrW()(GetCurrentProcess(), addr, &mut 0, info),
135135
|line| dbghelp.SymGetLineFromAddrW64()(GetCurrentProcess(), addr, &mut 0, line),
136136
cb,
137-
)
137+
);
138+
Some(())
138139
}
139140

140141
/// Resolve the address using the modern dbghelp APIs.

0 commit comments

Comments
 (0)