aboutsummaryrefslogtreecommitdiff
path: root/core/debug
diff options
context:
space:
mode:
Diffstat (limited to 'core/debug')
-rw-r--r--core/debug/trace/trace_windows.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/debug/trace/trace_windows.odin b/core/debug/trace/trace_windows.odin
index 5535c09f5..de1461e96 100644
--- a/core/debug/trace/trace_windows.odin
+++ b/core/debug/trace/trace_windows.odin
@@ -29,7 +29,7 @@ _destroy :: proc "contextless" (ctx: ^Context) -> bool {
}
_frames :: proc "contextless" (ctx: ^Context, skip: uint, frames_buffer: []Frame) -> []Frame {
- frame_count := win32.RtlCaptureStackBackTrace(u32(skip) + 2, len(frames_buffer), &frames_buffer[0], nil)
+ frame_count := win32.RtlCaptureStackBackTrace(u32(skip) + 2, u32(len(frames_buffer)), ([^]rawptr)(&frames_buffer[0]), nil)
for i in 0..<frame_count {
// NOTE: Return address is one after the call instruction so subtract a byte to
// end up back inside the call instruction which is needed for SymFromAddr.