diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-28 13:51:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-28 13:51:46 +0100 |
| commit | 74d75fb7fb9092e77eabb36cb71771c2c60ebb88 (patch) | |
| tree | bdabd7b11f85ee522fe9dd3680f28110d1d263da | |
| parent | 7ee2c1084f14b380908090623b120e5c94ddb536 (diff) | |
Correct types on windows
| -rw-r--r-- | core/debug/trace/trace_windows.odin | 2 |
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. |