Skip to content

Commit 897795e

Browse files
committed
fix: use thread HANDLE in trace_thread
1 parent c5163cd commit 897795e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backtrace/dbghelp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub unsafe fn trace(cb: &mut dyn FnMut(&super::Frame) -> bool) {
9595
}
9696

9797
#[inline(always)]
98-
pub unsafe fn trace_thread(cb: &mut dyn FnMut(&super::Frame) -> bool, thread: *mut c_void) {
98+
pub unsafe fn trace_thread(cb: &mut dyn FnMut(&super::Frame) -> bool, thread: HANDLE) {
9999
// Allocate necessary structures for doing the stack walk
100100
let process = GetCurrentProcess();
101101

src/backtrace/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub unsafe fn trace_thread_unsynchronized<F: FnMut(&Frame) -> bool>(
8282
thread: *mut c_void,
8383
mut cb: F,
8484
) {
85-
trace_thread_imp(&mut cb, thread)
85+
trace_thread_imp(&mut cb, thread as super::windows::HANDLE);
8686
}
8787

8888
/// A trait representing one frame of a backtrace, yielded to the `trace`

0 commit comments

Comments
 (0)